1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4186],{20142:function(e,t,a){"use strict";a.d(t,{Z:function(){return $}});var i=a(57437),n=a(62602),l=a(2874),s=a(99681),r=a(17031),o=a(12485),c=a(57282),d=a(16695),u=a(21533),m=a(89844),h=a(49600),p=a.n(h),v=a(33145),g=a(2265),x=a(94809),f=a(40066),_=a(66074),y=a(65545),k=a(85910),j=a(47407),C=a(29728),b=a.n(C);function N(e){let{usedQuestions:t,totalQuestions:a,statusLabel:n,showSignup:l,onSignup:s}=e;return(0,i.jsxs)("div",{className:b().matchmakerAnonInset,children:[(0,i.jsxs)("div",{className:b().matchmakerAnonInsetHeader,children:[(0,i.jsx)("span",{className:b().matchmakerAnonInsetLabel,children:n}),(0,i.jsx)("div",{className:b().matchmakerAnonDots,"aria-hidden":!0,children:Array.from({length:a}).map((e,a)=>(0,i.jsx)("span",{className:"".concat(b().matchmakerAnonDot," ").concat(a<t?b().matchmakerAnonDotUsed:"")},a))})]}),l?(0,i.jsx)("button",{type:"button",className:b().matchmakerAnonSignupBtn,onClick:s,children:"Sign up to keep chatting"}):null]})}var A=a(91653),S=a(91443),w=a(16393);function I(e){let{action:t,actionExecuted:a=null,disabled:n=!1,loading:l=!1,onYes:s=()=>{},onNo:o=()=>{}}=e;if(!t)return null;let c="accepted"===a||"rejected"===a,d=n||c;return(0,i.jsx)("div",{className:b().matchmakerActions,children:(0,i.jsxs)(A.Z,{gap:8,wrap:"nowrap",grow:!0,children:[(0,i.jsx)(r.Button,{variant:"outline",size:"xs",className:"".concat(b().matchmakerActionBtn).concat("rejected"===a?" ".concat(b().matchmakerActionBtnRejected):""),disabled:d,leftSection:"rejected"===a?(0,i.jsx)(S.Z,{size:14,stroke:2.5,className:b().matchmakerActionBtnIcon}):null,onClick:c?void 0:()=>o(t),children:"No Thanks"}),(0,i.jsx)(r.Button,{variant:"outline",size:"xs",className:"".concat(b().matchmakerActionBtn).concat("accepted"===a?" ".concat(b().matchmakerActionBtnAccepted):""),disabled:d,loading:l,leftSection:"accepted"===a?(0,i.jsx)(w.Z,{size:14,stroke:2.5,className:b().matchmakerActionBtnIcon}):null,onClick:c?void 0:()=>s(t),children:"Yes Please"})]})})}var L=a(79080),T=a(30445),M=a(5659),B=a(88864);function E(e){let{sources:t,defaultExpanded:a=!1}=e,[n,l]=(0,g.useState)(a),s=(0,g.useMemo)(()=>Array.isArray(t)?t.filter(e=>e&&"object"==typeof e).map(e=>{var t,a,i,n;return{id:String(null!==(t=e.id)&&void 0!==t?t:""),name:String(null!==(a=e.name)&&void 0!==a?a:"").trim(),link:String(null!==(i=e.link)&&void 0!==i?i:"").trim(),applicable:String(null!==(n=e.applicable)&&void 0!==n?n:"").trim()}}).filter(e=>e.name||e.applicable||e.link):[],[t]);return 0===s.length?null:(0,i.jsxs)("div",{className:b().matchmakerSources,children:[(0,i.jsxs)("button",{type:"button",className:"".concat(b().matchmakerSourcesToggle," ").concat(n?b().matchmakerSourcesToggleExpanded:""),onClick:()=>l(e=>!e),"aria-expanded":n,children:[(0,i.jsxs)("span",{children:["Sources (",s.length,")"]}),(0,i.jsx)(u.Z,{size:16,stroke:2,className:b().matchmakerSourcesChevron,"aria-hidden":"true"})]}),n?(0,i.jsx)("ol",{className:b().matchmakerSourcesList,children:s.map((e,t)=>(0,i.jsxs)("li",{className:b().matchmakerSourceItem,children:[e.name?(0,i.jsx)("span",{className:b().matchmakerSourceName,children:e.name}):null,!function(e){if(!e||"string"!=typeof e)return!1;try{let t=new URL(e);return"http:"===t.protocol||"https:"===t.protocol}catch(e){return!1}}(e.link)?null:(0,i.jsxs)("div",{className:b().matchmakerSourceLinkRow,children:[(0,i.jsx)("a",{href:e.link,target:"_blank",rel:"noopener noreferrer",className:b().matchmakerSourceLink,title:e.link,children:e.link}),(0,i.jsx)(L.q,{value:e.link,timeout:2e3,children:e=>{let{copied:t,copy:a}=e;return(0,i.jsx)(T.u,{label:t?"Copied":"Copy link",withArrow:!0,position:"top",children:(0,i.jsx)(M.A,{type:"button",variant:"subtle",size:"sm",className:b().matchmakerSourceCopyBtn,onClick:e=>{e.preventDefault(),e.stopPropagation(),a()},"aria-label":t?"Link copied":"Copy link",children:t?(0,i.jsx)(w.Z,{size:14,stroke:2.5,className:b().matchmakerSourceCopyIcon}):(0,i.jsx)(B.Z,{size:14,stroke:2,className:b().matchmakerSourceCopyIcon})})})}})]}),e.applicable?(0,i.jsx)("p",{className:b().matchmakerSourceApplicable,children:e.applicable}):null]},e.id||"".concat(e.name,"-").concat(t)))}):null]})}var R=a(48614),P=a(78595);let Z={hidden:{opacity:0,y:8},visible:{opacity:1,y:0,transition:{duration:.22,ease:[.25,.1,.25,1]}},exit:{opacity:0,y:4,transition:{duration:.15,ease:"easeIn"}}};function D(e){let{stage:t}=e,a=function(e){if("string"!=typeof e||!e.trim())return"Thinkingâ¦";let t=e.trim().replace(/[_-]+/g," ").replace(/\b\w/g,e=>e.toUpperCase());return"".concat(t,"â¦")}(t);return(0,i.jsx)(R.M,{mode:"wait",children:t?(0,i.jsxs)(P.E.div,{className:b().matchmakerThinking,variants:Z,initial:"hidden",animate:"visible",exit:"exit",role:"status","aria-live":"polite","aria-label":a,children:[(0,i.jsx)("span",{className:b().matchmakerThinkingOrb,"aria-hidden":!0}),(0,i.jsx)("span",{className:b().matchmakerThinkingLabel,children:a})]},t):null})}var H=a(18848),F=a(57970);F.TU.setOptions({breaks:!0,gfm:!0});let O=!1,z={ADD_ATTR:["target"]};function W(e){let t,{isMatchmaker:a,isAssistant:i}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=((t="string"==typeof e?e:null==e?"":String(e)).includes("\\n")&&!/\n/.test(t)&&(t=t.replace(/\\n
1/g,"\n")),t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"));if(O||(O=!0,H.Z.addHook("afterSanitizeAttributes",e=>{"A"===e.tagName&&(e.setAttribute("target","_blank"),e.setAttribute("rel","noopener noreferrer"))})),a&&i){let e=F.TU.parse(n);return H.Z.sanitize(e,{USE_PROFILES:{html:!0},...z})}return H.Z.sanitize(n,z)}function U(){return window.matchMedia("(prefers-reduced-motion: reduce)").matches}function Q(e){let{text:t,isActive:a=!1,isStreaming:n=!1,mode:l="oneshot",onComplete:s,onProgress:r,className:o=""}=e,c="stream"===l,d=function(e,t){let{enabled:a,onComplete:i,onProgress:n}=t,[l,s]=(0,g.useState)(()=>a&&!U()?0:e.length),[r,o]=(0,g.useState)(()=>!a||U()),c=(0,g.useRef)(!1),d=(0,g.useRef)(i),u=(0,g.useRef)(n);return d.current=i,u.current=n,(0,g.useEffect)(()=>{var t,i;if(!a||U()){s(e.length),o(!0),a&&(null===(t=d.current)||void 0===t||t.call(d));return}if(c.current)return;c.current=!0;let n=e.length;if(0===n){o(!0),null===(i=d.current)||void 0===i||i.call(d);return}let l=Math.max(1,Math.ceil(n/140)),r=0,m=window.setInterval(()=>{var e,t;s(r=Math.min(r+l,n)),null===(e=u.current)||void 0===e||e.call(u),r>=n&&(window.clearInterval(m),o(!0),null===(t=d.current)||void 0===t||t.call(d))},25);return()=>window.clearInterval(m)},[a,e]),{displayedText:e.slice(0,l),isComplete:r}}(t,{enabled:!c&&a,onComplete:c?void 0:s,onProgress:c?void 0:r}),u=function(e,t){let{isStreaming:a,onComplete:i,onProgress:n}=t,l=U(),[s,r]=(0,g.useState)(()=>l?e:""),[o,c]=(0,g.useState)(()=>l),d=(0,g.useRef)(l?e:""),u=(0,g.useRef)(e),m=(0,g.useRef)(a),h=(0,g.useRef)(i),p=(0,g.useRef)(n),v=(0,g.useRef)(l);return h.current=i,p.current=n,u.current=null!=e?e:"",m.current=!!a,(0,g.useEffect)(()=>{if(l)return;let e=!1,t=null,a=e=>{d.current=e,r(e)},i=()=>{let e=u.current,t=d.current;if(!t||e.startsWith(t))return;let i=0,n=Math.min(t.length,e.length);for(;i<n&&t[i]===e[i];)i+=1;a(e.slice(0,i))},n=()=>
1{if(e)return;i();let l=u.current;if(d.current.length>=l.length){if(a(l),!m.current){if(!v.current){var s;v.current=!0,c(!0),null===(s=h.current)||void 0===s||s.call(h)}return}t=window.setTimeout(n,32);return}v.current&&(v.current=!1,c(!1));let r=function(e,t){if(t>=e.length)return null;let a=e.slice(t),i=a.match(/^(\s*)(\S+)/);return i?{text:i[0],word:i[2]}:{text:a[0],word:a[0]}}(l,d.current.length);if(!r){t=window.setTimeout(n,32);return}let o=function(e,t){let{charsBehind:a,isStreaming:i}=t;if(!e)return 0;let n=e.word||"",l=22+11*n.length;return l=Math.min(130,Math.max(18,l)),/[.!?;:â¦]["')\]]*$/.test(n)?l+=72:/,$/.test(n)&&(l+=32),i?a>=64?l*=.28:a>=28&&(l*=.5):l*=.55,Math.max(8,Math.round(l))}(r,{charsBehind:l.length-d.current.length,isStreaming:m.current});t=window.setTimeout(()=>{var t;if(e)return;let i=u.current,l=Math.min(d.current.length+r.text.length,i.length);a(i.slice(0,l)),null===(t=p.current)||void 0===t||t.call(p),n()},o)};return n(),()=>{e=!0,t&&window.clearTimeout(t)}},[l]),(0,g.useEffect)(()=>{if(l&&(d.current=null!=e?e:"",r(null!=e?e:""),!v.current&&!a)){var t;v.current=!0,c(!0),null===(t=h.current)||void 0===t||t.call(h)}},[e,a,l]),{displayedText:s,isComplete:o}}(t,{isStreaming:n,onComplete:c?s:void 0,onProgress:c?r:void 0}),m=W(c?u.displayedText:d.displayedText,{isMatchmaker:!0,isAssistant:!0}),h=U();return(0,i.jsx)(P.E.div,{className:o,initial:!h&&!c&&{opacity:0,y:6},animate:{opacity:1,y:0},transition:{duration:.35,ease:[.25,.1,.25,1]},children:(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:m},className:b().emojiImage})})}var V=a(71096),Y=a.n(V),q=a(6442);let X={hidden:{opacity:0,y:50},visible:{opacity:1,y:0},exit:{opacity:0,y:50}},K={hidden:e=>({opacity:0,x:e?20:-20,y:6}),visible:{opacity:1,x:0,y:0,transition:{duration:.22,ease:[.25,.1,.25,1]}}};function G(e){let{isSender:t,shouldAnimate:a,className:n,children:l}=e;return(0,i.jsx)(P.E.div,{className:n,custom:t,variants:K,initial:!!a&&"hidden",animate:"visible",children:l})}function J(e,t){return!!e&&!!t&&e.createdAt===t.createdAt&&e.message===t.message}function $(e){var t;let{messageList:a,loading:h,senderId:C,staticWord:A,isTyping:S,fetchNextPage:w,hasNextPage:L,isFetchingNextPage:T,selectedUser:M,textareaHeight:B=36,fileChangedHandler:Z,isMatchmaker:H=!1,isExecutingAction:F=!1,executingActionMessageId:O=null,onMatchmakerActionYes:z=()=>{},onMatchmakerActionNo:U=()=>{},showMatchmakerSources:V=!1,anonFreemiumInset:K=null,typingMessageId:$=null,onTypingComplete:ee=()=>{},onTypingProgress:et=()=>{},pendingRetry:ea=null,onRetryFailedMessage:ei=()=>{},retryDisabled:en=!1,progressStage:el=null}=e,es=(0,g.useRef)(null),[er,eo]=(0,g.useState)(!1),[ec,ed]=(0,g.useState)(null),[eu,em]=(0,g.useState)(!0),[eh,ep]=(0,g.useState)(null),ev=(0,g.useRef)(0),eg=(0,g.useRef)([]),ex=(0,g.useRef)(null),ef=window.location.pathname.split("/"),e_=ef.includes("hall")||ef.includes("favorite-stand-view-hall"),ey=(0,q.a)("(max-width: 1024px)"),ek=null!==(t=null==a?void 0:a.reduce((e,t,a)=>t.senderId!==C?a:e,-1))&&void 0!==t?t:-1,ej=(null==a?void 0:a.length)?a[a.length-1]:null,eC=!!K&&ek>=0&&(null==ej?void 0:ej.senderId)!==C,eb=!!K&&((null==a?void 0:a.length)===0||K.showSignup&&(null==ej?void 0:ej.senderId)===C),eN=(0,g.useCallback)(e=>{Z&&Z(e)},[Z]),{getRootProps:eA,getInputProps:eS,isDragActive:ew}=(0,x.uI)({onDrop:eN,noClick:!0,noKeyboard:!0,accept:{"image/*":[],"application/pdf":[],"application/msword":[],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[],"text/csv":[],"text/plain":[],"application/vnd.ms-powerpoint":[],"application/vnd.openxmlformats-officedocument.presentationml.presentation":[],"application/vnd.ms-excel":[],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[]}}),eI=()=>{if(!es.current)return!0;let{scrollTop:e,scrollHeight:t,clientHeight:a}=es.current;return 50>Math.abs(t-e-a)},eL=()=>
1{if(!es.current)return null;let e=es.current.getBoundingClientRect(),t=e.top+e.height/2,a=es.current.querySelectorAll('[id^="messageId-"]'),i=null,n=1/0;return a.forEach(e=>{let a=e.getBoundingClientRect(),l=Math.abs(a.top+a.height/2-t);l<n&&(n=l,i=e)}),i?i.id:null},eT=()=>{es.current&&em(eI())},eM=(0,g.useCallback)(function(){let{behavior:e="smooth"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};requestAnimationFrame(()=>{es.current&&es.current.scrollTo({top:es.current.scrollHeight,behavior:e})})},[]),eB=(0,g.useCallback)(()=>{let e=ex.current;e&&es.current&&requestAnimationFrame(()=>{let t=es.current;if(!t||!e)return;let a=t.scrollHeight-e.scrollHeight;t.scrollTop=e.scrollTop+a,ex.current=null})},[]),eE=(0,g.useCallback)(()=>{eM({behavior:"smooth"}),em(!0),ed(null)},[eM]),eR=(0,g.useCallback)(()=>{et(),eu&&eM({behavior:"auto"})},[eu,et,eM]),eP=(0,g.useCallback)(e=>{ep(e),ee(e)},[ee]);(0,g.useEffect)(()=>{$&&ep(null)},[$]),(0,g.useEffect)(()=>{ea&&eM({behavior:"smooth"})},[ea,eM]),(0,g.useEffect)(()=>{h&&eo(!1)},[h]),(0,g.useEffect)(()=>{!a||h||er||setTimeout(()=>{es.current&&(es.current.classList.add("".concat(b().smoothScroll)),es.current.scrollTop=es.current.scrollHeight,setTimeout(()=>{eo(!0),em(!0)},1e3),ev.current=a.length,eg.current=[...a])},300)},[a,h,er]),(0,g.useEffect)(()=>{if(!h&&es.current&&er&&(null==a?void 0:a.length)>0){let e=eg.current;if(!H&&function(e,t){if(!(null==e?void 0:e.length)||!(null==t?void 0:t.length)||e.length<=t.length)return!1;let a=e[0],i=t[0],n=e[e.length-1],l=t[t.length-1];return!J(a,i)&&J(n,l)}(a,e)){eB(),ev.current=a.length,eg.current=[...a];return}if(null!=a&&a.length&&((null==e?void 0:e.length)?!J(a[a.length-1],e[e.length-1]):a.length>0)){let e=a[a.length-1];(null==e?void 0:e.senderId)===C?(eM({behavior:"smooth"}),em(!0),ed(null)):(eu||ec||ed(eL()),eu?eM({behavior:"auto"}):ec&&setTimeout(()=>{let e=document.getElementById(ec);e&&e.scrollIntoView({block:"center",behavior:"instant"})},100)),ev.current=a.length,eg.current=[...a]}}},[a,h,er,ec,eu,C,eM,H,eB]),(0,g.useEffect)(()=>{if(!h&&es.current&&er){let e=()=>{if(eT(),eu)ec&&ed(null);else{let e=eL();e&&e!==ec&&ed(e)}if(!L||T)return;let{scrollTop:e}=es.current;e<100&&(H||(ex.current={scrollHeight:es.current.scrollHeight,scrollTop:es.current.scrollTop}),w())},t=es.current;return t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}}},[h,L,T,w,ec,er,eu,H]);let{userTimeZone:eZ}=(0,n.Z)();function eD(e){if(e){let t=p()(e).tz(eZ);return null==t?void 0:t.format("HH:mm")}return""}return(0,i.jsxs)("div",{...eA(),style:{position:"relative",height:"100%"},children:[(0,i.jsx)("input",{...eS()}),ew&&(0,i.jsxs)("div",{style:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.9)",zIndex:1e3,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",border:"2px dashed #228be6",borderRadius:"8px"},children:[(0,i.jsx)(o.Z,{size:64,color:"#228be6"}),(0,i.jsx)("h3",{style:{marginTop:"20px",color:"#228be6"},children:"Drop files here to upload"})]}),!1==h?(0,i.jsxs)(i.Fragment,{children:[a&&a.length>0?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsxs)("div",{className:b().chatBoxList,style:{height:"calc(".concat(e_?"100dvh":ey?"85vh":"60vh"," - ").concat(B-36+(e_?225:125),"px)")},ref:es,children:[T&&(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"10px"},children:(0,i.jsx)(l.a,{size:"sm",color:"#6734d0"})}),null==a?void 0:a.map((e,t)=>{var n,l,r,o,d,u;let m=function(e,t){if(!t)return!0;let a=p()(e.date||e.time||e.createdAt).startOf("day"),i=p()(t.date||t.time||t.createdAt).startOf("day");return!a.isSame(i,"day")}(e,t>0?a[t-1]:null),h=H&&K&&eC&&t===ek&&e.senderId!==C,g=C===e.senderId,x=null!==(u=null!==(d=e.clientKey)&&void 0!==d?d:e.messageId)&&void 0!==u?u:"msg-".concat(e.createdAt,"-").concat(t),S=g?b().senderMsg:b().ReceiveMsg,w=H&&e.senderId!==C,L=!!e.isGreeting,T=w&&e.animateTyping&&null!=e.messageId&&e.messageId===$,M=w&&!!e.clientKey&&!1===e.streamSettled,B=w&&!T&&!M;return(0,i.jsxs)("div",{id:"messageId-".concat(e.createdAt),children:[m&&(0,i.jsx)("div",{className:b().dateHeader,children:(0,i.jsx)("div",{className:b().dateLabel,children:function(e){let t=p()().startOf("day"),a=p()(e),i=p()().year(),n=a.year();return a.isSame(t,"day")?"Today":a.isSame(t.clone().subtract(1,"day"),"day")?"Yesterday":n!==i?a.format("DD MMM YYYY"):a.format("DD MMM")}(e.date||e.time||e.createdAt)})}),"file"===e.messageType?(0,i.jsx)("div",{className:b().msgFull,children:(0,i.jsx)(G,{isSender:g,shouldAnimate:er,className:S,children:"pdf"===e.fileType||"doc"===e.fileType||"docx"===e.fileType||"ppt"===e.fileType||"pptm"===e.fileType||"pptx"===e.fileType||"xls"===e.fileType||"xlsx"===e.fileType||"csv"===e.fileType||"text"===e.fileType?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.default,{style:{cursor:"pointer",height:"auto",width:"100px"},width:100,height:100,unoptimized:!0,src:"pdf"===e.fileType?y.Z:"doc"===e.fileType||"docx"===e.fileType?_.Z:"ppt"===e.fileType||"pptm"===e.fileType||"pptx"===e.fileType?k.Z:"xls"===e.fileType||"xlsx"===e.fileType?f.Z:"csv"===e.fileType?f.Z:"txt"===e.fileType?j.Z:e.message,alt:e.fileName,onClick:()=>window.open(null==e?void 0:e.message)}),(0,i.jsx)("div",{style:{textDecoration:"none"},children:(null==e?void 0:e.fileName)&&(null==e?void 0:e.fileName.length)<15?e.fileName:(null==e?void 0:e.fileName)&&(null==e?void 0:e.fileName.substring(0,15))+"..."}),(0,i.jsx)("h6",{children:eD(null==e?void 0:e.time)})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(v.default,{style:{cursor:"pointer",height:"auto",width:"250px"},width:300,height:300,src:null==e?void 0:e.message,alt:e.fileName,onClick:()=>window.open(null==e?void 0:e.message)}),(0,i.jsx)("h6",{children:eD(null==e?void 0:e.time)})]})})}):"call"===e.messageType?(0,i.jsx)(G,{isSender:g,shouldAnimate:er,className:b().msgVideo,children:e.meetingDuration?(0,i.jsxs)(s.C,{classNames:{root:b().badgeRootSuccess},styles:{label:{display:"flex",alignItems:"center"}},children:[(0,i.jsx)(c.Z,{style:{marginRight:"10px"},size:13})," ",null==A?void 0:null===(n=A.chat)||void 0===n?void 0:n.duration," ",null==e?void 0:e.meetingDuration]}):(0,i.jsxs)(s.C,{classNames:{root:b().badgeRootError},styles:{label:{display:"flex",alignItems:"center"}},children:[(0,i.jsx)(c.Z,{style:{marginRight:"10px"},size:13})," ",null==A?void 0:null===(l=A.chat)||void 0===l?void 0:l.missedcall," ",Y()(e.time).isSame(Y()(),"day")?"Today ".concat(Y()(e.time).format("hh:mm a")):Y()(e.time).format("DD/MM/YYYY hh:mm a")]})}):(0,i.jsx)("div",{className:b().msgFull,children:(0,i.jsx)(G,{isSender:g,shouldAnimate:er,className:S,children:(0,i.jsxs)("div",{className:"".concat(b().msgContent," ").concat(w?b().matchmakerMarkdown:""," ").concat(L?b().matchmakerGreeting:""," ").concat(T||M?b().matchmakerTyping:""),children:[M?(0,i.jsx)(Q,{text:e.message,mode:"stream",isStreaming:!!e.isStreaming,onComplete:()=>{var t;return eP(null!==(t=e.clientKey)&&void 0!==t?t:e.messageId)},onProgress:eR}):T?(0,i.jsx)(Q,{text:e.message,isActive:!0,onComplete:()=>eP(e.messageId),onProgress:eR}):(0,i.jsx)("div",{dangerouslySetInnerHTML:{__html:W(e.message,{isMatchmaker:H,isAssistant:w})},className:b().emojiImage}),B&&(null===(r=e.actions)||void 0===r?void 0:r[0])&&(0,i.jsx)(I,{action:e.actions[0],actionExecuted:e.actionExecuted,disabled:F||e.actionsDisabled,loading:F&&O===e.messageId,onYes:()=>z(e.messageId,e.actions[0]),onNo:()=>U(e.messageId,e.actions[0])}),B&&V&&(null===(o=e.sources)||void 0===o?void 0:o.length)>0&&(0,i.jsx)(E,{sources:e.sources}),!h||T||M?null:(0,i.jsx)(N,{usedQuestions:K.usedQuestions,totalQuestions:K.totalQuestions,statusLabel:K.statusLabel,showSignup:K.showSignup,onSignup:K.onSignup}
1),T||M?null:eh===e.messageId||eh===e.clientKey?(0,i.jsx)(P.E.h6,{initial:{opacity:0},animate:{opacity:1},transition:{duration:.25,ease:"easeOut"},onAnimationComplete:()=>ep(null),children:eD(null==e?void 0:e.time)}):(0,i.jsx)("h6",{children:eD(null==e?void 0:e.time)})]})})})]},x)}),eb?(0,i.jsx)("div",{className:b().msgFull,children:(0,i.jsx)("div",{className:b().ReceiveMsg,children:(0,i.jsx)("div",{className:"".concat(b().msgContent," ").concat(b().matchmakerMarkdown),children:(0,i.jsx)(N,{usedQuestions:K.usedQuestions,totalQuestions:K.totalQuestions,statusLabel:K.statusLabel,showSignup:K.showSignup,onSignup:K.onSignup})})})}):null,H&&ea?(0,i.jsxs)("div",{className:b().matchmakerRetryBanner,role:"alert",children:[(0,i.jsx)("p",{className:b().matchmakerRetryMessage,children:ea.errorMessage||"Something went wrong. Please try again."}),(0,i.jsx)(r.Button,{size:"xs",variant:"outline",className:b().matchmakerRetryBtn,leftSection:(0,i.jsx)(d.Z,{size:14,stroke:2.5}),disabled:en,onClick:()=>ei(),children:"Retry"})]}):null]}),(0,i.jsx)(R.M,{children:!eu&&a.length>0&&!$&&(0,i.jsx)(P.E.button,{type:"button",className:b().scrollToBottomBtn,onClick:eE,initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.8},transition:{duration:.2},"aria-label":"Scroll to bottom",children:(0,i.jsx)(u.Z,{size:20,stroke:2.5})})})]}):H?(0,i.jsxs)("div",{className:b().chatBoxList,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:"1.5rem",padding:"2rem",textAlign:"center"},children:[(0,i.jsx)(m.Z,{size:48,style:{color:"#6734d0",filter:"drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))"}}),(0,i.jsx)("h3",{style:{margin:0,color:"#6734d0",textShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",fontWeight:"600"},children:"Ask Matchmaker"}),(0,i.jsx)("p",{style:{margin:0,color:"black",maxWidth:"400px",lineHeight:"1.5"},children:"Type a message below to get started."})]}):(0,i.jsxs)(P.E.div,{initial:{opacity:0}
1,animate:{opacity:1},transition:{delay:.5,duration:.3},className:b().chatBoxList,style:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",height:"100%",gap:"1.5rem",padding:"2rem",textAlign:"center"},children:[(0,i.jsx)(P.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.7,duration:.3},children:(0,i.jsx)(m.Z,{size:48,style:{color:"#6734d0",filter:"drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1))"}})}),(0,i.jsx)(P.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.8,duration:.3},children:(0,i.jsx)("h3",{style:{margin:0,color:"#6734d0",textShadow:"0 1px 2px rgba(0, 0, 0, 0.1)",fontWeight:"600"},children:"Start a Conversation"})}),(0,i.jsx)(P.E.div,{initial:{y:20,opacity:0},animate:{y:0,opacity:1},transition:{delay:.9,duration:.3},children:(0,i.jsxs)("p",{style:{margin:0,color:"black",maxWidth:"400px",lineHeight:"1.5"},children:["No messages yet. Start a conversation with ",null==M?void 0:M.firstName," ",null==M?void 0:M.lastName]})})]}),(0,i.jsx)(R.M,{children:el?(0,i.jsx)("div",{className:"chat-bubble-wrapper",children:(0,i.jsx)(P.E.div,{style:{position:"relative",zIndex:"1"},className:b().popup,variants:X,initial:"hidden",animate:"visible",exit:"exit",children:(0,i.jsx)(D,{stage:el})})}):S?(0,i.jsx)("div",{className:"chat-bubble-wrapper",children:(0,i.jsx)(P.E.div,{style:{position:"relative",zIndex:"1"},className:b().popup,variants:X,initial:"hidden",animate:"visible",exit:"exit",children:(0,i.jsx)("div",{className:"chat-bubble",children:(0,i.jsxs)("div",{className:"typing",children:[(0,i.jsx)("div",{className:"dot"}),(0,i.jsx)("div",{className:"dot"}),(0,i.jsx)("div",{className:"dot"})]})})})}):""})]}):(0,i.jsx)("div",{className:b().chatBoxList,style:{display:"flex",alignItems:"center",justifyContent:"center",height:"430px"},children:(0,i.jsx)(l.a,{color:"#6734d0"})})]})}},33956:function(e,t,a){"use strict";a.d(t,{Z:function(){return x}});var i=a(57437),n=a(77274),l=a(98117),s=a(79762),r=a(83547),o=a(91499),c=a(38276),d=a(33145),u={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/purple-close-icon.436b067a.png",height:38,width:37,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAJ1BMVEVMaXFnNNBnNNFqNddoMtBnNNBnNNBhPdtmM9FpNNRnNNJnM9FxOeTwAtw+AAAADHRSTlMAf6+RI4+eB1W+bNtgR+5CAAAACXBIWXMAAAsTAAALEwEAmpwYAAAANklEQVR4nCWKSQ7AMAyEGMfxkvb/762cckICTKrkNAvM63E2aWqHDf0ezxGZRU0CWDP/ErrEByLdANErA8bgAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8},m=a(78815),h=a(49396);a(21340);var p=a(71040),v=a(96531),g=a.n(v);function x(e){var t,a,v,x,f,_,y,k,j,C,b,N;let{handleClose:A,showChatDetails:S,selectedUser:w,handleBack:I,selectedUserStatus:L,hallHeader:T,session:M,currentReceiver:B,filterRole:E="",staticWord:R,handleFilterChange:P=()=>{},isUserBlocked:Z=!1,onToggleBlock:D,Matchmaker:H=!1,onOpenSessions:F,sessionsOpen:O=!1,sessionsLoading:z=!1}=e,{selectedEventStand:W}=(0,l.Z)(),[U,{open:Q,close:V}]=(0,r.q)(!1);return(0,i.jsxs)(i.Fragment,{children:[S?(0,i.jsxs)("div",{className:g().chatHeader,children:[(0,i.jsxs)("div",{className:g().backIconDiv,style:{background:"transparent",padding:"0"},children:[(0,i.jsx)("div",{className:g().backButton,onClick:I,children:(0,i.jsx)(o.Z,{})}),(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center"},children:[(0,i.jsxs)("div",{className:g().profileImgContainer,children:[H?(0,i.jsx)(p.Z,{size:40,alt:"Ai matchmaker",style:{marginLeft:"15px",marginRight:"5px"}}):(0,i.jsx)(d.default,{src:(null==w?void 0:w.profilePicture)?null==w?void 0:w.profilePicture:m.Z,alt:"profileimg",className:"profileimg",width:45,height:45}),0===L?(0,i.jsx)("span",{className:g().profileStatusOffline,children:L}):(0,i.jsx)("span",{className:g().profileStatusOnline,children:L})]}),(0,i.jsxs)("div",{className:g().userName,children:[(0,i.jsx)("div",{className:g().nameContainer,children:(0,i.jsxs)("span",{className:H?g().matchmakerUserName:"",children:[null==w?void 0:w.firstName," ",null==w?void 0:w.lastName,Z&&(0,i.jsx)("span",{className:g().blockedBadge,children:"Blocked"})]})}),H&&(0,i.jsxs)("span",{className:g().poweredBy,children:["powered by"," ",(0,i.jsx)(d.default,{src:h.Z,className:g().poweredByIcon,alt:"powered by",width:10,height:10})]}),(null==w?void 0:w.companyPosition)!=null&&(null==w?void 0:w.companyName)!=null&&(0,i.jsxs)("span",{style:{fontSize:"13px"},children:[(null==w?void 0:w.companyPosition)!==null?(null==w?void 0:null===(t=w.companyPosition)||void 0===t?void 0:t.length)<=14?null==w?void 0:w.companyPosition:(null==w?void 0:null===(a=w.companyPosition)||void 0===a?void 0:a.substring(0,14))+"...":""," ",(0,i.jsx)("span",{style:{fontWeight:"200",fontSize:"13px"},children:" At"})," ",(0,i.jsx)("span",{className:g().companyName,children:(null==w?void 0:w.companyName)!==null?(null==w?void 0:null===(v=w.companyName)||void 0===v?void 0:v.length)<=14?null==w?void 0:w.companyName:(null==w?void 0:null===(x=w.companyName)||void 0===x?void 0:x.substring(0,14))+"...":""})]})]})]})]}),(0,i.jsxs)("div",{className:g().chatHeaderRight,children:[H&&F?(0,i.jsx)("button",{type:"button",className:"".concat(g().sessionsButton," ").concat(O?g().sessionsButtonActive:""),"aria-label":"Sessions","aria-expanded":O,"aria-busy":z,disabled:z,onClick:F,children:(0,i.jsx)(c.Z,{size:26,stroke:1.25}
1)}):null,(0,i.jsx)("div",{className:g().closeButton,onClick:A,children:(0,i.jsx)(d.default,{src:u,alt:"close icon",style:{cursor:"pointer",width:"20px",height:"20px"},width:20,height:20})})]})]}):(0,i.jsxs)("div",{className:g().chatHeader,children:[(0,i.jsxs)("div",{className:g().chatheaderLeft,children:[(0,i.jsx)("h3",{children:T?"".concat(null==R?void 0:null===(f=R.chat)||void 0===f?void 0:f.chatwith," ").concat((null==W?void 0:W.tradingName)?null==W?void 0:W.tradingName:""):null==R?void 0:null===(_=R.chat)||void 0===_?void 0:_.AllMessages}),(0,i.jsx)("p",{children:T?null==R?void 0:null===(y=R.chat)||void 0===y?void 0:y.liveexhibitor:null==R?void 0:null===(k=R.chat)||void 0===k?void 0:k.oneplace})]}),(0,i.jsx)("div",{style:{display:"flex"},children:(null==B?void 0:B.length)===0&&void 0===B||T?null:(0,i.jsx)(s.P,{defaultValue:E,onChange:P,classNames:{input:g().visitorSelect,wrapper:g().selectWrapper,dropdown:g().customDropDown},allowDeselect:!1,comboboxProps:{shadow:"md",dropdownPadding:5,transitionProps:{transition:"pop",duration:200}},data:(null==M?void 0:null===(j=M.user)||void 0===j?void 0:j.role)==="exhibitor"||(null==M?void 0:null===(C=M.user)||void 0===C?void 0:C.isDualUser)?[{value:"",label:"All"},{value:"organiser",label:"Organizer"},{value:"exhibitor",label:(null==M?void 0:null===(b=M.user)||void 0===b?void 0:b.isDualUser)?"Representative/ \n Exhibitor":"Representative"}]:(null==M?void 0:null===(N=M.user)||void 0===N?void 0:N.role)=="organiser"?[{value:"",label:"All"},{value:"organiser",label:"Organizer"},{value:"exhibitor",label:"Representative"}]:[{value:"",label:"All"},{value:"exhibitor",label:"Exhibitor"},{value:"organiser",label:"Organizer"}]})}),(0,i.jsx)("div",{className:g().closeButton,onClick:A,children:(0,i.jsx)(d.default,{src:u,alt:"close icon",style:{cursor:"pointer",width:"20px",height:"20px"},width:20,height:20})})]}),(0,i.jsx)(n.Z,{opened:U,onClose:V,iconType:"error",title:Z?"Unblock User":"Block User",description:Z?"Are you sure you want to unblock ".concat(null==w?void 0:w.firstName," ").concat(null==w?void 0:w.lastName,"?"):"Are you sure you want to block ".concat(null==w?void 0:w.firstName," ").concat(null==w?void 0:w.lastName,"?"),blueButtonTitle:Z?"Unblock":"Block",blueButtonFunction:()=>{D&&D(),V()},greyButtonTitle:"Cancel",greyButtonFunction:V})]})}},58366:function(e,t,a){"use strict";a.d(t,{Z:function(){return M}});var i=a(57437),n=a(77274),l=a(58621),s=a(78171),r=a(33704),o=a(87937),c=a(7406),d=a(5659),u=a(83547),m=a(91443),h=a(23477),p=a(25110),v=a(35515),g=a(97484),x=a(16393),f=a(48614),_=a(78595),y=a(33145),k=a(2265),j=a(40066),C=a(66074),b=a(65545),N=a(85910),A=a(47407),S=a(29728),w=a.n(S),I=e=>{var t,a,n;return(0,i.jsxs)("svg",{width:20,height:20,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,i.jsx)("path",{d:"M12 2.5 13.38 8.62 19.5 10 13.38 11.38 12 17.5 10.62 11.38 4.5 10 10.62 8.62 12 2.5Z",fill:null!==(t=e.fill)&&void 0!==t?t:"#6734d0"}),(0,i.jsx)("path",{d:"M18.35 14.2 19.02 16.85 21.7 17.5 19.02 18.15 18.35 20.8 17.68 18.15 15 17.5 17.68 16.85 18.35 14.2Z",fill:null!==(a=e.fill)&&void 0!==a?a:"#6734d0"}),(0,i.jsx)("path",{d:"M6.4 14.55 6.9 16.55 8.9 17.05 6.9 17.55 6.4 19.55 5.9 17.55 3.9 17.05 5.9 16.55 6.4 14.55Z",fill:null!==(n=e.fill)&&void 0!==n?n:"#6734d0"})]})},L=e=>(0,i.jsx)("svg",{width:30,height:30,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,i.jsx)("path",{d:"m10 14 2.273 5.303c.313.73 1.286.807 1.676.116A54 54 0 0 0 17 13c2-5 3-9 3-9M10 14l-5.303-2.273c-.73-.313-.807-1.286-.116-1.676A54 54 0 0 1 11 7c5-2 9-3 9-3M10 14 20 4",stroke:"white",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})});let T=[{value:"flash_lite",label:"Faster Responses"},{value:"flash",label:"Deep Thinking"}];function M(e){var t,a,S,M,B,E;let{file:R,deleteFile:P=()=>{},handleImageClick:Z,session:D,sendMessage:H,hiddenFileInput:F,meetingObject:O,selectedUser:z,selectedUserStatus:W,handleOnChange:U=()=>{},fileChangedHandler:Q=()=>{},handleOnEnter:V,text:Y,isLoading:q,setMeeting:X,meeting:K,loading:G=!1,inputDisabled:J,setText:$,onTyping:ee=()=>{},isTyping:et=!1,onTextareaHeightChange:ea=()=>{},isUserBlocked:ei=!1,inputPlaceholder:en="Type a message...",isMatchmaker:el=!1,selectedModel:es="flash",onModelChange:er=()=>{}}=e,eo=null!=J?J:G,[ec,ed]=(0,k.useState)(!1),[eu,em]=(0,k.useState)(!1),[eh,{open:ep,close:ev}]=(0,u.q)(!1),[eg,ex]=(0,k.useState)(!1),[ef,e_]=(0,k.useState)(!1),ey=(0,k.useRef)(null),ek=(0,k.useRef)(null),ej=(0,k.useRef)(null),eC=(0,k.useCallback)(()=>
1{if(ey.current){let e=ey.current;e.style.height="auto";let t=Math.min(e.scrollHeight,120);e.style.height="".concat(t,"px"),e.scrollHeight>120?e.style.overflowY="auto":e.style.overflowY="hidden",ea(t)}},[ea]);(0,k.useEffect)(()=>{eC()},[Y,eC]),(0,k.useMemo)(()=>{let e=Y.replace(/\s/g,"");return e&&e.length>10},[Y]);let eb=(0,k.useMemo)(()=>{var e,t;return null!==(t=null===(e=T.find(e=>e.value===es))||void 0===e?void 0:e.label)&&void 0!==t?t:"Flash"},[es]),eN=e=>{er(e),e_(!1)},eA=()=>{G||em(!eu)};(0,k.useEffect)(()=>{let e=e=>{ek.current&&!ek.current.contains(e.target)&&em(!1)};return eu&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[eu]),(0,k.useEffect)(()=>{let e=e=>{ej.current&&!ej.current.contains(e.target)&&e_(!1)};return ef&&document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[ef]);let eS=()=>{D.user.role===l.IT.EXHIBITOR&&X(!K),D.user.role,l.IT.VISITOR},ew=(0,i.jsx)("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,i.jsx)("path",{d:"M7 1V13M13 7H1",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})}),eI=(0,i.jsxs)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,i.jsx)("path",{d:"M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22Z",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M8 14C8 14 9.5 16 12 16C14.5 16 16 14 16 14",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M9 9H9.01",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),(0,i.jsx)("path",{d:"M15 9H15.01",stroke:"black",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})]});return(0,i.jsxs)(i.Fragment,{children:[R.length>0&&(0,i.jsx)("div",{className:w().uploadFileSection,style:{maxWidth:"385px",overflowX:"auto",overflowY:"hidden",scrollbarWidth:"thin",scrollbarColor:"#cbd5e1 #f1f5f9"},children:(0,i.jsx)(f.M,{initial:!1,children:R.map((e,t)=>{var a=null;a=e.fileName.split(".").pop();let n="".concat(e.fileName,"-").concat(e.file);return(0,i.jsxs)(_.E.div,{initial:{opacity:0,scale:.5,y:20},animate:{opacity:1,scale:1,y:0},exit:{opacity:0,scale:.5,x:-100},transition:{duration:.3,ease:"easeOut"},style:{width:"50px",marginRight:"2px",position:"relative",flexShrink:0},children:[(0,i.jsx)(m.Z,{onClick:()=>P(t),style:{marginLeft:"30px",color:"#ffffff",width:"15px",height:"15px",position:"absolute",backgroundColor:"#ef4444",cursor:"pointer",borderRadius:"20px",zIndex:9,padding:"2px",boxShadow:"0px 2px 8px rgba(239, 68, 68, 0.3)",transition:"all 0.2s ease"},onMouseEnter:e=>{e.currentTarget.style.backgroundColor="#dc2626",e.currentTarget.style.transform="scale(1.1)"},onMouseLeave:e=>{e.currentTarget.style.backgroundColor="#ef4444",e.currentTarget.style.transform="scale(1)"}}),(0,i.jsx)(_.E.div,{whileHover:{scale:1.05},transition:{duration:.2},children:(0,i.jsx)(y.default,{style:{height:"50px",width:"50px",borderRadius:"50px",objectFit:"contain"},alt:"fileIcon",width:50,height:50,src:"pdf"===a?b.Z:"doc"===a||"docx"===a?C.Z:"ppt"===a||"pptm"===a||"pptx"===a?N.Z:"xls"===a||"xlsx"===a?j.Z:"csv"===a?j.Z:"txt"===a?A.Z:e.file})})]},n)})})}),(0,i.jsxs)(o.Stack,{gap:0,classNames:{root:w().inputWrapper},children:[ei&&(0,i.jsxs)("div",{className:w().blockedBanner,children:[(0,i.jsx)(h.Z,{size:16}),(0,i.jsx)("span",{children:"You have blocked this user. You can no longer send them messages."})]}),(0,i.jsx)("div",{className:w().chatbottomMsgBox,children:(0,i.jsxs)("div",{className:w().chatbottomLeftMsgBox,children:[(0,i.jsxs)("div",{className:w().chatbottomRightMsgBox,children:[(0,i.jsxs)("div",{className:w().plusIconContainer,ref:ek,style:{position:"absolute",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-end",borderRadius:"25px",gap:"30px",left:"7.5px",bottom:"20px",overflow:"hidden",...eu&&{backgroundColor:"white",boxShadow:"0px 4px 20px rgba(0, 0, 0, 0.15)"},padding:"10px 7.5px",zIndex:10},children:[(0,i.jsx)(f.M,{children:eu&&!ei&&(0,i.jsx)(_.E.div,{initial:{opacity:0,height:0,marginBottom:0}
1,animate:{opacity:1,height:"auto",marginBottom:0},exit:{opacity:0,height:0,marginBottom:0},transition:{duration:.3,ease:"easeOut"},onClick:()=>{ed(!0),em(!1)},style:{cursor:"pointer",fontSize:"24px",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s"},onMouseEnter:e=>e.currentTarget.style.transform="scale(1.1)",onMouseLeave:e=>e.currentTarget.style.transform="scale(1)",children:(0,i.jsx)("div",{style:{width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:eI})})}),(0,i.jsx)(f.M,{children:eu&&!ei&&!el&&(0,i.jsx)(_.E.div,{initial:{opacity:0,height:0,marginBottom:0},animate:{opacity:1,height:"auto",marginBottom:0},exit:{opacity:0,height:0,marginBottom:0},transition:{duration:.3,ease:"easeOut",delay:.1},onClick:()=>{F.current&&F.current.click(),em(!1)},style:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",transition:"transform 0.2s"},onMouseEnter:e=>e.currentTarget.style.transform="scale(1.1)",onMouseLeave:e=>e.currentTarget.style.transform="scale(1)",children:(0,i.jsx)(p.Z,{size:24,color:"#000"})})}),!ei&&(0,i.jsx)(_.E.div,{onClick:()=>{ei||eA()},animate:{rotate:eu?135:0},transition:{duration:.3,ease:"easeInOut"},style:{cursor:"pointer",width:"24px",height:"24px",display:"flex",alignItems:"center",justifyContent:"center"},children:ew})]}),ec&&(0,i.jsx)("div",{style:{position:"absolute",bottom:"50px",left:"20px",zIndex:1e3},children:(0,i.jsx)(r.Z,{onClickOutside:e=>{let t=document.querySelector("em-emoji-picker");e.composedPath().includes(t)||ed(!1)},data:s,onEmojiSelect:e=>{U(Y+(null==e?void 0:e.native))}})}),(0,i.jsx)("div",{children:(0,i.jsx)(v.Z,{size:24,color:"#000",style:{opacity:0}})}),(null==D?void 0:null===(t=D.user)||void 0===t?void 0:t.role)===l.IT.EXHIBITOR&&O&&Object.keys(O).length>0?(0,i.jsx)("div",{className:w().videoCallButtonContainer,children:(0,i.jsx)(g.Z,{style:{cursor:"not-allowed"},size:26,stroke:1.5,className:w().videoCallButton})}):(null==z?void 0:z.role)===l.IT.VISITOR&&(null==D?void 0:null===(a=D.user)||void 0===a?void 0:a.role)===l.IT.EXHIBITOR||(null==z?void 0:z.role)===l.IT.EXHIBITOR&&(null==D?void 0:null===(S=D.user)||void 0===S?void 0:S.role)===l.IT.EXHIBITOR?(0,i.jsx)("div",{className:w().videoCallButtonContainer,children:(0,i.jsx)(g.Z,{size:26,stroke:1.5,className:w().videoCallButton,onClick:eS})}):(null==z?void 0:z.role)===l.IT.VISITOR&&(null==D?void 0:null===(M=D.user)||void 0===M?void 0:M.role)===l.IT.EXHIBITOR||(null==z?void 0:z.role)===l.IT.EXHIBITOR&&(null==D?void 0:null===(B=D.user)||void 0===B?void 0:B.role)===l.IT.EXHIBITOR?(0,i.jsx)("div",{className:w().videoCallButtonContainer,children:(0,i.jsx)(g.Z,{size:26,stroke:1.5,className:w().videoCallButton,onClick:()=>{(null==z?void 0:z.isOnline)?eS():ep()}})}):(null==D?void 0:null===(E=D.user)||void 0===E?void 0:E.role)===l.IT.VISITOR&&O&&Object.keys(O).length>0&&(null==z?void 0:z.userId)===O.creatorId?(0,i.jsx)("div",{className:w().videoCallButtonContainer,children:(0,i.jsx)(g.Z,{size:26,stroke:1.5,className:w().videoCallButton,onClick:()=>X(!0)})}):(0,i.jsx)(i.Fragment,{}),(0,i.jsxs)("div",{className:w().emojiContainer,children:[(0,i.jsx)("input",{type:"file",ref:F,accept:"application/pdf, application/vnd.ms-excel/*, image/*, application/csv, application/doc/*, application/txt, application/ppt/*, ",onChange:Q,style:{display:"none"},disabled:G||ei,multiple:!0}),(0,i.jsx)("div",{className:w().expandingTextareaContainer,children:(0,i.jsx)(c.g,{ref:ey,rows:1,maxRows:6,value:Y,disabled:ei||eo,readOnly:eo&&!ei,onChange:e=>{var t;ei||eo||(U(e.target.value),ee({receiverId:null==z?void 0:z.userId,senderId:null==D?void 0:null===(t=D.user)||void 0===t?void 0:t.id}),ex(!1))},classNames:{input:w().textMessageInput},onKeyUp:e=>{G||ei||"Enter"!==e.key||!1!==e.nativeEvent.shiftKey||V(Y)},placeholder:en,onInput:eC})})]})]}),el?(0,i.jsxs)("div",{className:w().matchmakerModelPicker,ref:ej,children:[(0,i.jsx)("button",{type:"button",className:"".concat(w().matchmakerModelIcon).concat(ef?" ".concat(w().matchmakerModelIconActive):""),"aria-label":"Choose model","aria-haspopup":"listbox","aria-expanded":ef,title:eb,onClick:e=>{e.stopPropagation(),e_(e=>!e)},children:(0,i.jsx)(I,{})}),ef?(0,i.jsx)("div",{className:w().matchmakerModelPopover,role:"listbox","aria-label":"Choose model",children:T.map(e=>{let t=e.value===es;return(0,i.jsxs)("button",{type:"button",role:"option","aria-selected":t,className:"".concat(w().matchmakerModelOption).c
1oncat(t?" ".concat(w().matchmakerModelOptionSelected):""),onClick:()=>eN(e.value),children:[(0,i.jsx)("span",{children:e.label}),t?(0,i.jsx)(x.Z,{size:16,stroke:2.4,className:w().matchmakerModelOptionCheck}):null]},e.value)})}):null]}):null,(0,i.jsx)(d.A,{loaderProps:{color:"#7b4dd5"},variant:"filled",loading:q,disabled:G||ei,size:40,styles:{icon:{paddingRight:"5px",marginTop:"2px"},root:{marginTop:"2px"}},color:"#7b4dd5",radius:50,onClick:()=>{!ei&&!G&&(/\S/.test(Y)||R.length>0)&&H()},style:{cursor:"pointer"},children:(0,i.jsx)(L,{})})]})})]}),(0,i.jsx)(n.Z,{title:"User Offline",opened:eh,iconType:"needHelpIcon",onClose:()=>ev(),description:"".concat(null==z?void 0:z.firstName," ").concat(null==z?void 0:z.lastName," is currently offline."),blueButtonTitle:"Okay",blueButtonFunction:()=>{ev()}})]})}},87626:function(e,t,a){"use strict";a.d(t,{Z:function(){return j}});var i=a(57437),n=a(41210),l=a(11878),s=a(2874),r=a(30445),o=a(35515),c=a(29105),d=a(21404),u=a(81256),m=a(38956),h=a(16393),p=a(77398),v=a.n(p),g=a(33145),x=a(2265),f=a(78815),_=a(29728),y=a.n(_);a(21340);var k=a(71040);function j(e){var t,a,p;let{data:_,onItemClick:j=()=>{},senderId:C,listLoading:b=!1,fetchNextPage:N=()=>{},hasNextPage:A=!1,isFetchingNextPage:S=!1,session:w,staticWord:I,hallHeader:L,handleAddMorePeople:T=()=>{},typingUsers:M={},handleMatchmakerClick:B=()=>{},fromGeneralChat:E=!1}=e,R=(0,x.useCallback)(e=>{let t=e.currentTarget;t.scrollHeight-t.scrollTop-t.clientHeight<120&&A&&!S&&N()},[N,A,S]),P=e=>{let t=v()().startOf("day"),a=v()(e);return a.isSame(t,"day")?a.format("hh:mm A"):a.isSame(t.clone().subtract(1,"day"),"day")?"Yesterday":a.format("DD/MM/YYYY")};if(b)return(0,i.jsx)("div",{style:{height:"434px",alignItems:"center",justifyContent:"center",display:"flex"},children:(0,i.jsx)(s.a,{})});let Z=null!==(t=null==_?void 0:_.filter(e=>{var t,a;return!((null==e?void 0:null===(t=e.sender)||void 0===t?void 0:t.userId)===C&&(null==e?void 0:null===(a=e.receiver)||void 0===a?void 0:a.userId)===C)}))&&void 0!==t?t:[],D=Z.length>0,H=!E&&(!_||0===_.length),F=()=>{var e,t;return(null==w?void 0:null===(e=w.user)||void 0===e?void 0:e.role)==="visitor"&&(null==w?void 0:null===(t=w.user)||void 0===t?void 0:t.isDualUser)===0||L?null:(0,i.jsx)(r.u,{label:"Add Contact",color:"#6734d0",zIndex:1e4,withArrow:!0,arrowSize:12,children:(0,i.jsx)("div",{className:y().addMorePeople,onClick:T,children:(0,i.jsx)("span",{children:(0,i.jsx)(o.Z,{className:y().addMorePeopleIcon,stroke:2,size:56,fill:"#fff"})})})})},O=e=>{let{title:t,subtitle:a,icon:n,legacy:l=!1}=e;return(0,i.jsx)("div",{className:"".concat(y().peopleEmptyState," ").concat(l?y().peopleEmptyStateLegacy:""),children:(0,i.jsxs)("div",{className:y().peopleEmptyStateCard,children:[(0,i.jsx)("div",{className:y().peopleEmptyStateIconWrap,"aria-hidden":"true",children:(0,i.jsx)(n,{size:28,stroke:1.5})}),t?(0,i.jsx)("p",{className:y().peopleEmptyStateTitle,children:t}):null,a?(0,i.jsx)("p",{className:y().peopleEmptyStateSubtitle,children:a}):null]})})},z=function(){var e,t,a,i,n,l,s,r;let{legacy:o=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return L?O({title:null==I?void 0:null===(n=I.chat)||void 0===n?void 0:n.noexhibitoronline,subtitle:null==I?void 0:null===(l=I.chat)||void 0===l?void 0:l.trylater,icon:c.Z,legacy:o}):(null==w?void 0:null===(e=w.user)||void 0===e?void 0:e.role)=="organiser"||(null==w?void 0:null===(t=w.user)||void 0===t?void 0:t.role)=="exhibitor"?O({title:null==I?void 0:null===(s=I.chat)||void 0===s?void 0:s.nochat,subtitle:null==I?void 0:null===(r=I.chat)||void 0===r?void 0:r.tillnow,icon:d.Z,legacy:o}):O({title:null==I?void 0:null===(a=I.chat)||void 0===a?void 0:a.notspoken,subtitle:null==I?void 0:null===(i=I.chat)||void 0===i?void 0:i.talktoexhibitor,icon:d.Z,legacy:o})};return H?(0,i.jsxs)("div",{className:y().chatPeopleList,children:[L?(0,i.jsxs)("div",{className:y().noExhibitorOnline,children:[(0,i.jsx)("h2",{children:null==I?void 0:null===(a=I.chat)||void 0===a?void 0:a.noexhibitoronline}),(0,i.jsx)("h2",{children:null==I?void 0:null===(p=I.chat)||void 0===p?void 0:p.trylater})]}):z({legacy:!0}),F()]}):(0,i.jsxs)("div",{className:y().chatPeopleList,onScroll:R,children:[E&&(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("div",{className:y().aiAssistantHeader,children:(0,i.jsx)("span",{children:"AI ASSISTANT"})}),(0,i.jsxs)("div",{className:y().chatItem,onClick:()=>B(!0),children:[(0,i.jsx)("div",{className:y().chatProfilePic,children:(0,i.jsx)(k.Z,{size:45,alt:"Ai matchmaker"})}),(0,i.jsxs)("div",{className:y().senderInfo,children:[(0,i.jsx)("div",{className:y().matchmakerInfo,children:(0,i.jsx)("span",{children:"Matchmaker"})}),(0,i.jsx)("div",{style:{lineHeight:"120%",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:(0,i.jsx)("span",{children:"Your AI assistant , always online"})})]})]})]}),E?(0,i.jsx)("div",{className:y().peopleHeader,children:(0,i.jsx)("span",{children:"PEOPLE"})}):null,E&&!D?z():null,Z.map((e,t)=>{var a,s,r,o,c,d,p,v,x,_,k,b,N,A,S;return(0,i.jsx)(i.Fragment,{children:(null==e?void 0:null===(a=e.sender)||void 0===a?void 0:a.userId)!==C?(0,i.jsxs)("div",{className:y().chatItem,onClick:()=>{j(null==e?void 0:e.sender,e)},children:[(0,i.jsx)("div",{className:y().chatProfilePic,children:(0,i.jsx)(g.default,{src:(null==e?void 0:null===(s=e.sender)||void 0===s?void 0:s.profilePicture)?null==e?void 0:null===(r=e.sender)||void 0===r?void 0:r.profilePicture:f.Z,alt:"profile pic",width:45,height:45,unoptimized:!0,style:{objectFit:"cover"}})}),(0,i.jsxs)("div",{className:y().senderInfo,children:[(0,i.jsxs)("span",{children:[e.sender.firstName," ",e.sender.lastName]}),0==e.isSystmeGenerated&&(0,i.jsx)("div",{style:{lineHeight:"120%",display:"flex",alignItems:"center",justifyContent:"flex-start"},children:(0,i.jsx)("span",{style:{width:"90%",display:"block"},children:0==e.isSystmeGenerated&&M[e.sender.userId]?(0,i.jsxs)("div",{className:y().typingIndicator,children:[(0,i.jsx)("span",{children:"typing"}),(0,i.jsx)("span",{}),(0,i.jsx)("span",{}),(0,i.jsx)("span",{})]}):(0,i.jsxs)(i.Fragment,{children:["file"===e.messageType?["jpeg","png","gif","jpg"].includes(null===(o=e.fileType)||void 0===o?void 0:o.toLowerCase())?(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",marginTop:"4px"},children:[(0,i.jsx)(u.Z,{size:16})," ",(0,i.jsx)("span",{children:"Media"})]}):(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",marginTop:"4px"},children:[(0,i.jsx)(m.Z,{size:16})," ",(0,i.jsx)("span",{children:"File"})]}):(0,i.jsx)("span",{className:y().chatMessagePreview,children:null!==e.fileName?e.fileName:(0,l.IQ)(e.message)}),null===e.seenAt?(0,i.jsx)("span",{className:y().newMessageChat}):null]})})})]}),(0,i.jsxs)("div",{className:y().chatMeta,children:[(0,i.jsx)("span",{children:P(null==e?void 0:e.createdAt)}),(null==e?void 0:null===(c=e.sender)||void 0===c?void 0:c.role)==="organiser"?(0,i.jsx)("div",{className:y().eventinfo,children:(0,i.jsx)("span",{children:null==I?void 0:null===(d=I.chat)||void 0===d?void 0:d.eventorg})}):(0,i.jsx)(i.Fragment,{children:void 0!==e.stand&&0!==Object.keys(e.stand).length&&(0,i.jsx)("div",{className:y().eventinfo,children:(0,i.jsxs)("span",{children:[null==I?void 0:null===(p=I.chat)||void 0===p?void 0:p.hall," ",void 0===e.stand.hall.hallNo?"null":e.stand.hall.hallNo," ",null==I?void 0:null===(v=I.chat)||void 0===v?void 0:v.stand," ",void 0===e.stand.standNo?"null":e.stand.standNo]})})})]})]},"people_".concat(t)):(0,i.jsxs)("div",{className:y().chatItem,onClick:()=>{j(null==e?void 0:e.receiver,e)},children:[(0,i.jsx)("div",{className:y().chatProfilePic,children:(0,i.jsx)(g.default,{src:(null==e?void 0:null===(x=e.receiver)||void 0===x?void 0:x.profilePicture)?(0,n.Sr)(null==e?void 0:null===(_=e.receiver)||void 0===_?void 0:_.profilePicture,{format:"auto",width:45,height:45,quality:100}):f.Z,alt:"profilePicture",width:45,height:45,unoptimized:!0})}),(0,i.jsxs)("div",{className:y().senderInfo,children:[(0,i.jsxs)("span",{children:[e.receiver.firstName," ",e.receiver.lastName]}),0==e.isSystmeGenerated&&(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px"},children:[(0,i.jsx)("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"30px",height:"15px"},children:null===e.seenAt?(0,i.jsx)(h.Z,{style:{color:"grey",fontSize:"20px"}}):(0,i.jsx)(h.Z,{style:{color:"#007aff",fontSize:"20px"}})}),(0,i.jsx)("div",{style:{lineHeight:"120%",minWidth:0,flex:1},children:(0,i.jsx)("span",{style:{width:"90%",display:"block"},children:0==e.isSystmeGenerated&&M[e.receiver.userId]?(0,i.jsxs)("div",{className:y().typingIndicator,children:[(0,i.jsx)("span",{children:"typing"}),(0,i.jsx)("span",{}),(0,i.jsx)("span",{}),(0,i.jsx)("span",{})]}):(0,i.jsx)(i.Fragment,{children:"file"===e.messageType?["jpeg","png","gif","jpg"].includes(null===(k=e.fileType)||void 0===k?void 0:k.toLowerCase())?(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",marginTop:"4px"},children:[(0,i.jsx)(u.Z,{size:16})," ",(0,i.jsx)("span",{children:"Media"})]}):(0,i.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:"5px",marginTop:"4px"},children:[(0,i.jsx)(m.Z,{size:16})," ",(0,i.jsx)("span",{children:"File"})]}):(0,i.jsx)("span",{className:y().chatMessagePreview,children:null!==e.fileName?e.fileName:(0,l.IQ)(e.message)})})})})]})]}),(0,i.jsxs)("div",{className:y().chatMeta,children:[(0,i.jsx)("span",{children:P(e.createdAt)}),(null==e?void 0:null===(b=e.receiver)||void 0===b?void 0:b.role)==="organiser"?(0,i.jsx)("div",{className:y().eventinfo,children:(0,i.jsx)("span",{children:null==I?void 0:null===(N=I.chat)||void 0===N?void 0:N.eventorg})}):(0,i.jsx)(i.Fragment,{children:void 0!==e.stand&&0!==Object.keys(e.stand).length&&(0,i.jsx)("div",{className:y().eventinfo,children:(0,i.jsxs)("span",{children:[null==I?void 0:null===(A=I.chat)||void 0===A?void 0:A.hall," ",void 0===e.stand.hall.hallNo?"null":e.stand.hall.hallNo," ",null==I?void 0:null===(S=I.chat)||void 0===S?void 0:S.stand," ",void 0===e.stand.standNo?"null":e.stand.standNo]})})})]})]})})}),S?(0,i.jsx)("div",{style:{display:"flex",justifyContent:"center",padding:"12px 0"},children:(0,i.jsx)(s.a,{size:"sm"})}):null,F()]})}},71040:function(e,t,a){"use strict";a.d(t,{Z:function(){return m}});var i=a(57437),n=a(39199),l=a(7882),s=a.n(l),r=a(2265),o=a(51325),c=a(21340),d=a(78069),u=a.n(d);function m(e){let{size:t=45,className:a="",alt:l="Ai matchmaker",style:d}=e,m=(0,n.i)(),h="ios"===m||"android"===m,p=(0,r.useRef)(null),v=Math.round(25/45*t),g=Math.round(85/45*t);return(0,r.useEffect)(()=>
1{if(!p.current)return;p.current.muted=!0;let e=p.current.play();void 0!==e&&e.catch(()=>{})},[h]),(0,i.jsxs)("div",{className:"".concat(u().avatar," ").concat(a).trim(),style:{width:t,height:t,...d},role:"img","aria-label":l,children:[h?(0,i.jsx)("video",{ref:p,src:"/chat/chat-bot-bg-1.webm",autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"auto",className:u().lottie,style:{width:g,height:g,clipPath:"circle(50% at center)"},"aria-hidden":!0}):(0,i.jsx)(s(),{animationData:o,loop:!0,className:u().lottie,style:{width:g,height:g},"aria-hidden":!0}),(0,i.jsx)(c.Z,{width:v,height:v,className:u().icon,"aria-hidden":!0,fill:"#fff"})]})}},74985:function(e,t,a){"use strict";a.d(t,{OC:function(){return d},Qk:function(){return u},YI:function(){return c},_1:function(){return o},oJ:function(){return r},xL:function(){return s}});var i=a(54682),n=a(50719),l=a(41210);let s=async e=>{let t="?";return Object.keys(e).map(a=>t+=a+"="+e[a]+"&"),await (0,l.Dc)(500),(await n.Z.get(i.Z.chat.list+t)).data.data},r=async(e,t)=>{let a="?";if(Object.keys(e).map(t=>a+=t+"="+e[t]+"&"),t){let e=await n.Z.get(i.Z.chat.list+"/"+t+a);if(!e.data.error)return e.data.data}return!1},o=async e=>{let t=await n.Z.post(i.Z.chat.upload,e);if(!t.data.error)return t.data.data},c=async e=>{var t,a;let l="?";Object.keys(e).map(t=>l+=t+"="+e[t]+"&");let s=await n.Z.get(i.Z.chat.visitorstand+l);if(!(null===(t=s.data)||void 0===t?void 0:t.error))return null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.data},d=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,a="?";return Object.keys(e).map(t=>a+=t+"="+e[t]+"&"),(await n.Z.post(i.Z.chat.contactlist+a,t)).data.data},u=async e=>(await n.Z.post(i.Z.chat.automatedmessage,e)).data.data},66822:function(e,t,a){"use strict";a.d(t,{K_:function(){return u},Oi:function(){return m},eG:function(){return d},i7:function(){return h},iL:function(){return p},m6:function(){return c}});var i=a(72019),n=a(2868),l=a(21770),s=a(71632),r=a(74985),o=a(80605);let c=(e,t)=>(0,n.useInfiniteQuery)({queryKey:["allchatListNew",t],queryFn:t=>{let{pageParam:a}=t;return(0,r.xL)({page:a,limit:30,role:null==e?void 0:e.role})},initialPageParam:1,getNextPageParam:e=>{var t,a;if((null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.currentPage)<(null==e?void 0:null===(a=e.meta)||void 0===a?void 0:a.totalPages))return e.meta.currentPage+1}}),d=(e,t)=>(0,n.useInfiniteQuery)({queryKey:["sliderchatlist",t,null==t?void 0:t.standId],queryFn:t=>{let{pageParam:a}=t;if((null==e?void 0:e.eventId)&&(null==e?void 0:e.standId))return(0,r.YI)({page:a,limit:30,eventId:null==e?void 0:e.eventId,standId:null==e?void 0:e.standId,role:null==e?void 0:e.role})},initialPageParam:1,getNextPageParam:e=>{var t,a;if((null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.currentPage)<(null==e?void 0:null===(a=e.meta)||void 0===a?void 0:a.totalPages))return e.meta.currentPage+1},staleTime:2e3}),u=(e,t)=>(0,n.useInfiniteQuery)({queryKey:["chatdetails",t],queryFn:a=>{let{pageParam:i}=a;return(0,r.oJ)({...e,page:i},t)},initialPageParam:1,getNextPageParam:(e,t)=>{var a,i;return(null==e?void 0:null===(a=e.meta)||void 0===a?void 0:a.currentPage)<(null==e?void 0:null===(i=e.meta)||void 0===i?void 0:i.totalPages)?e.meta.currentPage+1:void 0}}),m=(e,t)=>(0,l.useMutation)({mutationFn:e=>(0,r._1)(e),onError:e=>{var a,n,l,s;(null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(a=n.data)||void 0===a?void 0:a.message)&&i.notifications.show({title:"Error",message:null==e?void 0:null===(s=e.response)||void 0===s?void 0:null===(l=s.data)||void 0===l?void 0:l.message}),t()},onSuccess:t=>{e(t)}}),h=e=>{var t,a;let{data:i}=(0,o.useSession)(),n=(null==i?void 0:null===(t=i.user)||void 0===t?void 0:t.role)!=="visitor"||(null==i?void 0:null===(a=i.user)||void 0===a?void 0:a.isDualUser)!==0;return(0,s.useQuery)({queryKey:["chatContactList",e],queryFn:()=>(0,r.OC)(e),enabled:!!n})},p=()=>(0,l.useMutation)({mutationFn:e=>(0,r.Qk)(e)})},82043:function(e,t,a){"use strict";a.d(t,{Pl:function(){return r},jz:function(){return s},s4:function(){return o}});var i=a(54682);a(83120);var n=a(50719),l=a(41210);let s=async e=>{let t=(0,l.Nb)(e);return(await n.Z.get(i.Z.dashboard.eventList+t)).data.data},r=async(e,t)=>{let a="?";Object.keys(t).map(e=>a+=e+"="+t[e]+"&"),a=a.slice(0,-1),await (0,l.Dc)(500);try{return(await n.Z.get(null!=e?i.Z.cart.order+"/list/"+e+a:i.Z.cart.standreq+a)).data.data}catch(e){return message.error(e.message),!1}},o=async e=>{let t=(0,l.Nb)(e);return await (0,l.Dc)(1e3),(await n.Z.get(i.Z.dashboard.leadlist+t)).data.data}},66994:function(e,t,a){"use strict";a.d(t,{CD:function(){return s},Jb:function(){return l},vq:function(){return r}});var i=a(71632),n=a(82043);let l=e=>(0,i.useQuery)({queryKey:["eventList",e],queryFn:()=>(0,n.jz)(e)}),s=function(e,t){let a=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,i.useQuery)({queryKey:["eventList",t],queryFn:()=>(0,n.Pl)(e,t),enabled:a})},r=e=>(0,i.useQuery)({queryKey:["leadList",e],queryFn:()=>(0,n.s4)(e),enabled:!0})},19100:function(e,t,a){"use strict";let i=(0,a(97094).Ue)(e=>({newMessageStore:null,newMessageSliderStore:null,newMessageFromSlider:null,newMessageFromAll:null,receiverFromCalender:null,receiverFromCalenderFullDetails:null,extraDetailsStands:null,setNewMessageStore:t=>e({newMessageStore:t}),setNewMessageSliderStore:t=>e({newMessageSliderStore:t}),setNewMessageFromSlider:t=>e({newMessageFromSlider:t}),setNewMessageFromAll:t=>e({newMessageFromAll:t}),setReceiverFromCalender:t=>e({receiverFromCalender:t}),setReceiverFromCalenderFullDetails:t=>e({receiverFromCalenderFullDetails:t}),setExtraDetailsStands:t=>e({extraDetailsStands:t}),resetNewMessageSliderStore:()=>e({newMessageSliderStore:null}),resetNewMessageStore:()=>e({newMessageStore:null}),resetNewMessageFromSlider:()=>e({newMessageFromSlider:null}),resetNewMessageFromAll:()=>e({newMessageFromAll:null}),resetReceiverFromCalender:()=>e({receiverFromCalender:null}),resetAllMessageStore:()=>e({newMessageStore:null,newMessageSliderStore:null,newMessageFromSlider:null,newMessageFromAll:null,receiverFromCalender:null,receiverFromCalenderFullDetails:null,extraDetailsStands:null})}));t.Z=i},87603:function(e,t,a){"use strict";let i=(0,a(97094).Ue)(e=>({notifications:[],addNotification:t=>{e(e=>({notifications:["stand-approve-reject"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.organizerName,companyName:null==t?void 0:t.exhibitorCompany,notificationType:null==t?void 0:t.notificationType,status:null==t?void 0:t.status,standNo:null==t?void 0:t.standNo,hallNo:null==t?void 0:t.hallNo,link:"/".concat(null==t?void 0:t.eventId,"/console/").concat(null==t?void 0:t.stand
1Id,"/event-dashboard"),eventName:null==t?void 0:t.eventName}:"stand-submit"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.exhibitorName,companyName:null==t?void 0:t.exhibitorCompany,notificationType:null==t?void 0:t.notificationType,link:"/".concat(null==t?void 0:t.eventId,"/console/").concat(null==t?void 0:t.standId,"/stand-preview?callback=standlist"),eventName:null==t?void 0:t.eventName}:"meeting-started"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.creatorName,companyName:null==t?void 0:t.tradingName,notificationType:null==t?void 0:t.notificationType,link:t.meetingLink,newTab:!0}:"meetingSchedulerMessage"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.exhibitorName,minutes:null==t?void 0:t.minutes,notificationType:null==t?void 0:t.notificationType,time:null==t?void 0:t.time}:"contact-sharing"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.senderName,companyName:null==t?void 0:t.senderCompany,notificationType:null==t?void 0:t.notificationType,link:"/contacts"}:"meeting-request"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.senderName,companyName:null==t?void 0:t.senderCompany,notificationType:null==t?void 0:t.notificationType,link:"/diary"}:"meeting-accept"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.senderName,companyName:null==t?void 0:t.senderCompany,notificationType:null==t?void 0:t.notificationType,link:"/diary"}:"login"===t.notificationType?{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.userName,companyName:null==t?void 0:t.companyName,notificationType:null==t?void 0:t.notificationType}:"level-change"===t.notificationType?{id:new Date().getTime(),isVisible:!0,notificationType:null==t?void 0:t.notificationType,title:null==t?void 0:t.title}:{id:new Date().getTime(),isVisible:!0,userName:null==t?void 0:t.userName,companyName:null==t?void 0:t.companyName},...e.notifications]}))},removeNotification:t=>{e(e=>({notifications:e.notifications.filter(e=>e.id!==t)}))}}));t.Z=i},96531:function(e){e.exports={chatheaderLeft:"ChatHeader_chatheaderLeft__ExOED",chatHeader:"ChatHeader_chatHeader__PeYib",profileImgContainer:"ChatHeader_profileImgContainer__G1fFQ",chatHeaderRight:"ChatHeader_chatHeaderRight__Pg3ue",dotsIcon:"ChatHeader_dotsIcon___Yuzf",visitorSelect:"ChatHeader_visitorSelect__odfce",customDropDown:"ChatHeader_customDropDown__O6rMk",selectWrapper:"ChatHeader_selectWrapper__7yHsc",userName:"ChatHeader_userName__9W7PX",matchmakerUserName:"ChatHeader_matchmakerUserName__o5WBR",poweredBy:"ChatHeader_poweredBy__KX6SR",poweredByIcon:"ChatHeader_poweredByIcon__8ibZN",nameContainer:"ChatHeader_nameContainer__MvjU1",companyName:"ChatHeader_companyName__aVG83",backIconDiv:"ChatHeader_backIconDiv__1H7nH",profileStatusOffline:"ChatHeader_profileStatusOffline__mNbF_",profileStatusOnline:"ChatHeader_profileStatusOnline__8uNka",backButton:"ChatHeader_backButton__tXPms",sessionsButton:"ChatHeader_sessionsButton__pfmh8",sessionsButtonActive:"ChatHeader_sessionsButtonActive__E_W3_",closeButton:"ChatHeader_closeButton__olIJI",blockedBadge:"ChatHeader_blockedBadge__vueD4"}},29728:function(e){e.exports={chatList:"ChatList_chatList__RQa4b",emojiContainer:"ChatList_emojiContainer__Q7Fkk",chatModal:"ChatList_chatModal__mll_K",mapChatModal:"ChatList_mapChatModal__JXMmk",pathIndex:"ChatList_pathIndex__4CEXb",chatItem:"ChatList_chatItem__L1XrL",chatBox:"ChatList_chatBox__DnyXE",matchmakerChatRoot:"ChatList_matchmakerChatRoot__R9IW4",chatProfilePic:"ChatList_chatProfilePic__JSX9f",senderInfo:"ChatList_senderInfo__5eCtb",matchmakerInfo:"ChatList_matchmakerInfo__JgJiy",chatMessagePreview:"ChatList_chatMessagePreview__2FK5Z",chatbottomRightMsgBox:"ChatList_chatbottomRightMsgBox__RF5WX",chatMeta:"ChatList_chatMeta___aztA",eventinfo:"ChatList_eventinfo__mdwft",chatbottomMsgBox:"ChatList_chatbottomMsgBox__UvnLm",chatbottomLeftMsgBox:"ChatList_chatbottomLeftMsgBox__F0kqT",chatBoxList:"ChatList_chatBoxList__p7JXW",smoothScroll:"ChatList_smoothScroll__PhkQl",chatPeopleList:"ChatList_chatPeopleList__FKVaW",noExhibitorOnline:"ChatList_noExhibitorOnline__CU37G",fileAttachIcon:"ChatList_fileAttachIcon__pI11y",videoCallButton:"ChatList_videoCallButton__L5RJt",msgSendBtn:"ChatList_msgSendBtn__Ji_Yb",msgSendBtnDisable:"ChatList_msgSendBtnDisable__OToOO",msgFull:"ChatList_msgFull__ngN8j",dateHeader:"ChatList_dateHeader__yhBb1",dateLabel:"ChatList_dateLabel__WQ2ir",aiAssistantHeader:"ChatList_aiAssistantHeader__LhiRj",peopleHeader:"ChatList_peopleHeader__KG66V",peopleEmptyState:"ChatList_peopleEmptyState__E_8vu",peopleEmptyStateLegacy:"ChatList_peopleEmptyStateLegacy__HB_fo",peopleEmptyStateCard:"ChatList_peopleEmptyStateCard__WQR_V",peopleEmptyStateIconWrap:"ChatList_peopleEmptyStateIconWrap__GSIRl",peopleEmptyStateTitle:"ChatList_peopleEmptyStateTitle__rSDXP",peopleEmptyStateSubtitle:"ChatList_peopleEmptyStateSubtitle__Cq3WW",ReceiveMsg:"ChatList_ReceiveMsg__PG5tu",msgContent:"ChatList_msgContent__tE42W",senderMsg:"ChatList_senderMsg__uNeMY",emojiImage:"ChatList_emojiImage__Em5wS",matchmakerMarkdown:"ChatList_matchmakerMarkdown__FlFBR",matchmakerTyping:"ChatList_matchmakerTyping__Ajk10",matchmakerTypingCursor:"ChatList_matchmakerTypingCursor__DJAu1",matchmakerCursorBlink:"ChatList_matchmakerCursorBlink__zy09A",matchmakerThinking:"ChatList_matchmakerThinking__3Io6I",matchmakerThinkingOrb:"ChatList_matchmakerThinkingOrb__1e6DN",matchmakerThinkingPulse:"ChatList_matchmakerThinkingPulse__Y_M6G",matchmakerThinkingLabel:"ChatList_matchmakerThinkingLabel__dMwFb",matchmakerThinkingShimmer:"ChatList_matchmakerThinkingShimmer__c9pR4",matchmakerSources:"ChatList_matchmakerSources__Jqnx9",matchmakerSourcesToggle:"ChatList_matchmakerSourcesToggle__Q4Eix",matchmakerSourcesToggleExpanded:"ChatList_matchmakerSourcesToggleExpanded__fPb1Z",matchmakerSourcesChevron:"ChatList_matchmakerSourcesChevron__qrDqS",matchmakerSourcesList:"ChatList_matchmakerSourcesList__itikU",matchmakerSourceItem:"ChatList_matchmakerSourceItem__ZI48C",matchmakerSourceName:"ChatList_matchmakerSourceName__F0e6A",matchmakerSourceLinkRow:"ChatList_matchmakerSourceLinkRow__ClShp",matchmakerSourceLink:"ChatList_matchmakerSourceLink__n7Ozs",matchmakerSourceCopyBtn:"ChatList_matchmakerSourceCopyBtn__R9ee6",matchmakerSourceCopyIcon:"ChatList_matchmakerSourceCopyIcon__riOgC",matchmakerSourceApplicable:"ChatList_matchmakerSourceApplicable__ISaei",matchmakerActions:"ChatList_matchmakerActions__8Rbve",matchmakerRetryBanner:"ChatList_matchmakerRetryBanner__89JmZ",matchmakerRetryMessage:"ChatList_matchmakerRetryMessage__vQIxc",matchmakerRetryBtn:"ChatList_matchmakerRetryBtn__t8YXj",matchmakerActionBtn:"ChatList_matchmakerActionBtn__EnxQV",matchmakerActionBtnAccepted:"ChatList_matchmakerActionBtnAccepted__5Hwh7",matchmakerActionBtnRejected:"ChatList_matchmakerActionBtnRejected__wMtVC",matchmakerActionBtnIcon:"ChatList_matchmakerActionBtnIcon__NJk9d",matchmakerStandPickerItem:"ChatList_matchmakerStandPickerItem__4uvnG",matchmakerBody:"ChatList_matchmakerBody__SdQg1",matchmakerBodyTyping:"ChatList_matchmakerBodyTyping__Kj1jU",anonFreemiumBanner:"ChatList_anonFreemiumBanner__tDvJS",matchmakerAnonInset:"ChatList_matchmakerAnonInset__mlmIQ",matchmakerAnonInsetHeader:"ChatList_matchmakerAnonInsetHeader__5f7t9",matchmakerAnonInsetLabel:"ChatList_matchmakerAnonInsetLabel__oWaLI",matchmakerAnonDots:"ChatList_matchmakerAnonDots__dqW2w",matchmakerAnonDot:"ChatList_matchmakerAnonDot__Y8CBm",matchmakerAnonDotUsed:"ChatList_matchmakerAnonDotUsed__5H5nx",matchmakerAnonSignupBtn:"ChatList_matchmakerAnonSignupBtn__RDZfG",uploadFileSection:"ChatList_uploadFileSection__WEdVD",queuedQueryStrip:"ChatList_queuedQueryStrip__76nyk",queuedQueryLabel:"ChatList_queuedQueryLabel__V6gen",queuedQueryText:"ChatList_queuedQueryText__7PoVw",matchmakerSessionsBackdrop:"ChatList_matchmakerSessionsBackdrop__IJlDw",matchmakerSessionsPanel:"ChatList_matchmakerSessionsPanel__uFj3x",matchmakerSessionsHeader:"ChatList_matchmakerSessionsHeader__BFUm0",matchmakerSessionsTitle:"ChatList_matchmakerSessionsTitle__iXUZ_",matchmakerSessionsCloseBtn:"ChatList_matchmakerSessionsCloseBtn__LfPd_",matchmakerSessionsNewBtn:"ChatList_matchmakerSessionsNewBtn__DWJHz",matchmakerSessionsListLabel:"ChatList_matchmakerSessionsListLabel__zRE9M",matchmakerSessionsList:"ChatList_matchmakerSessionsList__Vrz5u",matchmakerSessionItem:"ChatList_matchmakerSessionItem__by0BV",matchmakerSessionItemActive:"ChatList_matchmakerSessionItemActive__mNxDT",matchmakerSessionItemInner:"ChatList_matchmakerSessionItemInner__mRA3k",matchmakerSessionItemTop:"ChatList_matchmakerSessionItemTop__KhrbC",matchmakerSessionItemDate:"ChatList_matchmakerSessionItemDate__q6RlL",matchmakerSessionItemPreview:"ChatList_matchmakerSessionItemPreview__Ka67w",matchmakerSessionItemPreviewEmpty:"
1ChatList_matchmakerSessionItemPreviewEmpty__kC1bP",matchmakerSessionItemRow:"ChatList_matchmakerSessionItemRow__fD7wb",matchmakerSessionItemMain:"ChatList_matchmakerSessionItemMain__7HFhy",matchmakerSessionMenuBtn:"ChatList_matchmakerSessionMenuBtn__wB3bp",matchmakerSessionMenuDropdown:"ChatList_matchmakerSessionMenuDropdown__Odu3F",matchmakerSessionMenuItem:"ChatList_matchmakerSessionMenuItem___hlYg",matchmakerSessionsEmpty:"ChatList_matchmakerSessionsEmpty__Avc9i",matchmakerSessionsEmptyText:"ChatList_matchmakerSessionsEmptyText__63LG5",msgVideo:"ChatList_msgVideo__kwXzO",videoTag:"ChatList_videoTag__tv_Qv",meetingTag:"ChatList_meetingTag__v8ry6",badgeRootSuccess:"ChatList_badgeRootSuccess__igzK0",badgeRootError:"ChatList_badgeRootError__tWX8D",newMessageChat:"ChatList_newMessageChat__K6z0D",addMorePeople:"ChatList_addMorePeople__ipkR2",addMorePeopleIcon:"ChatList_addMorePeopleIcon__ymcJF",textMessageInput:"ChatList_textMessageInput__mLlVs",expandingTextareaContainer:"ChatList_expandingTextareaContainer__RWH5w",matchmakerModelIconWrap:"ChatList_matchmakerModelIconWrap__PuOho",matchmakerModelPicker:"ChatList_matchmakerModelPicker__qIxgY",matchmakerModelIcon:"ChatList_matchmakerModelIcon__kYz5G",matchmakerModelIconActive:"ChatList_matchmakerModelIconActive__uB6GF",matchmakerModelPopover:"ChatList_matchmakerModelPopover__uLOPD",matchmakerModelList:"ChatList_matchmakerModelList__aSXEK",matchmakerModelOption:"ChatList_matchmakerModelOption__dK_6o",matchmakerModelOptionSelected:"ChatList_matchmakerModelOptionSelected__pjy5p",matchmakerModelOptionCheck:"ChatList_matchmakerModelOptionCheck__wpIUX",inputWrapper:"ChatList_inputWrapper__Z4Q1N",blockedBanner:"ChatList_blockedBanner__Jo5Jb",popup:"ChatList_popup__b_Jnw",videoCallButtonContainer:"ChatList_videoCallButtonContainer__AMe5K",loadingMore:"ChatList_loadingMore__dovrj",typingIndicator:"ChatList_typingIndicator__81vzb",typing:"ChatList_typing__nPJhm",scrollToBottomBtn:"ChatList_scrollToBottomBtn__p7OeE"}},78069:function(e){e.exports={avatar:"MatchmakerAvatar_avatar__JCvWG",lottie:"MatchmakerAvatar_lottie__7tgCV",icon:"MatchmakerAvatar_icon__LAOxQ"}},40066:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/ic_file_csv.c497911d.svg",height:56,width:56,blurWidth:0,blurHeight:0}},66074:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/ic_file_doc.b58f1ad9.svg",height:56,width:56,blurWidth:0,blurHeight:0}},65545:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/ic_file_pdf.58da954b.svg",height:56,width:56,blurWidth:0,blurHeight:0}},85910:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/ic_file_ppt.2aa832ba.svg",height:56,width:56,blurWidth:0,blurHeight:0}},47407:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/ic_file_txt.661252b9.svg",height:56,width:56,blurWidth:0,blurHeight:0}},78815:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/dummyUser.edd965c9.png",height:225,width:225,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAMAAADz0U65AAAAFVBMVEXU2N69xM3EytLz9Pba3eP////4+foCVR01AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAMElEQVR4nBXHyREAMAwDodXl/kvOhB8sSGTEauWAulVgsSFj+c/A7gaE246wtG32ABUzAKeSN5zSAAAAAElFTkSuQmCC",blurWidth:8,blurHeight:8}},49396:function(e,t){"use strict";t.Z={src:"https://static.xpofairs.com/frontend-static/xpo-fairs/_next/static/media/xpofairs-powerby.5433578a.png",height:22,width:74,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAACCAMAAABSSm3fAAAAJFBMVEUABAYQo/gAaK//div7ByT/eCUAn/8DAAD/BSMAT3+2xmzoz0bnOUUwAAAADHRSTlMlenDIjMCNTYeWosGlXmicAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAGklEQVR4nGPgYOZmZGJnYGBgYeVi42RgYAAAAqwAQ0Qthj0AAAAASUVORK5CYII=",blurWidth:8,blurHeight:2}}}]);
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.