@mirantes-micro/foundation-design-system 1.2.183 → 1.2.184

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -990,7 +990,7 @@
990
990
  }
991
991
  }
992
992
  }
993
- `;var RC=()=>{var u;let{chatApiUrl:e,user:t,page:o}=M(),{searchMessage:r,selectedChat:n}=it(),a=usehooks.useDebounce(r,400),s=m=>j(void 0,[m],function*({pageParam:g=1}){var b,x;let v={body:a};return o!=null&&o.id&&(v.pageId=o.id),yield vf__default.default(e!=null?e:"",$C,{conversationId:(b=n==null?void 0:n.conversationId)!=null?b:"",options:{filter:v,page:g,perPage:20,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(x=t==null?void 0:t.accessToken)!=null?x:""})}),i=a!=null&&a.length?["page-messages",n==null?void 0:n.conversationId,a,o==null?void 0:o.id]:["page-messages",n==null?void 0:n.conversationId,o==null?void 0:o.id],{data:l,isLoading:d,fetchNextPage:c,hasNextPage:p}=yt({queryKey:i,queryFn:s,initialPageParam:1,enabled:!!(n!=null&&n.conversationId)&&!!(o!=null&&o.id),staleTime:0,getNextPageParam:g=>{var v;let m=(v=g==null?void 0:g.getMessagesByConversation)==null?void 0:v.meta;if(m)return ((m==null?void 0:m.currentPage)||0)<((m==null?void 0:m.total)||0)?((m==null?void 0:m.currentPage)||0)+1:void 0}});return {messages:(u=l==null?void 0:l.pages.flatMap(g=>{var m,v;return (v=(m=g==null?void 0:g.getMessagesByConversation)==null?void 0:m.data)!=null?v:[]}).reverse())!=null?u:[],isGettingMessages:d,fetchNextPage:c,hasNextPage:p}};function eM(e){let{fetchNextPage:t,hasNextPage:o,isGettingMessages:r,messages:n}=RC(),a=o||false,s=J.useRef(null),i=J.useRef(0),l=J.useRef(null),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(0),[m,v]=J.useState(false),h=J.useRef(true),[b]=EM__default.default({loading:r,hasNextPage:o,onLoadMore:()=>{s.current&&(i.current=s.current.scrollHeight),t();},disabled:!o,rootMargin:"200px 0px 0px 0px"}),x=J.useRef((n==null?void 0:n.length)||0);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A||!(n!=null&&n.length))return;let k=n.length,N=k>x.current;if(x.current=k,h.current&&!r){h.current=false,setTimeout(()=>{l.current&&l.current.scrollIntoView({behavior:"auto"}),setTimeout(()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,D=I-P-S;f(D<=50);},100);},100);return}p?(l.current&&l.current.scrollIntoView({behavior:"auto"}),c(false),g(0),v(false)):N&&(c(true),g(I=>I+1),v(true),setTimeout(()=>v(false),500));},[n,p,r,e]);let w=J.useRef(p);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A)return;let k=()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,T=I-P-S<=50;w.current!==T&&(w.current=T,f(T),T&&(c(false),g(0)));},N=setTimeout(()=>{k();},200);return A.addEventListener("scroll",k),()=>{clearTimeout(N),A.removeEventListener("scroll",k);}},[e]),J.useEffect(()=>{if(r&&i.current&&s.current){let A=s.current,k=A.scrollHeight-i.current;A.scrollTop=k+A.scrollTop;}},[r]);let C=J.useCallback(()=>{l.current&&l.current.scrollIntoView({behavior:"smooth"}),c(false),g(0),f(true);},[]);return {containerRef:s,infiniteRef:b,lastMessageRef:l,messages:n,isGettingMessages:r,hasNewMessages:d,newMessageCount:u,isAtBottom:p,isAnimatingUp:m,scrollToBottom:C,hasNextPage:a}}function $u({containerRef:e}){var R;let{setHasMessages:t,hasMessages:o,messageAction:r}=Qo(),{user:n,locale:a,page:s}=M(),i=O(a,"empty-chat"),{selectedChat:l,messages:d,forwardMessageIds:c,clearForwardMessages:p}=it(),{infiniteRef:f,lastMessageRef:u,messages:g,isGettingMessages:m,hasNewMessages:v,newMessageCount:h,scrollToBottom:b,isAtBottom:x}=eM(e),w=J.useRef(b),C=J.useRef({isAtBottom:x,hasNewMessages:v,newMessageCount:h}),A=J.useRef(true);J.useEffect(()=>{w.current=b;},[b]),J.useEffect(()=>{if(A.current){A.current=false,C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};return}if(!(C.current.isAtBottom!==x||C.current.hasNewMessages!==v||C.current.newMessageCount!==h))return;C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};let _=setTimeout(()=>{window.dispatchEvent(new CustomEvent("chatScrollState",{detail:{isAtBottom:x,scrollToBottom:w.current,hasNewMessages:v,newMessageCount:h}}));},0);return ()=>clearTimeout(_)},[x,v,h]),J.useEffect(()=>{t==null||t(false);},[o]);function k(V){if(!V)return null;if(typeof V=="number"){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string"&&V.includes("T")){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string")try{let _=dateFns.parse(V,"yyyy-MM-dd HH:mm:ss",new Date);return isNaN(_.getTime())?null:_}catch(_){return null}return null}function N(V){return isNaN(V==null?void 0:V.getTime())?"":dateFns.isToday(V)?O(a,"today"):dateFns.isYesterday(V)?O(a,"yesterday"):dateFns.format(V,"MMMM d, yyyy")}let I=V=>{var _;return (r==null?void 0:r.action)==="MESSAGE_DELETED"&&(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&((_=r==null?void 0:r.messagesIds)==null?void 0:_.includes(V))},P=V=>{if(V!=null&&V.actions)switch(V.actions){case "removedAdmin":return {type:"removedAdmin",text:O(a,"admin-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"})};case "madeAdmin":return {type:"madeAdmin",text:O(a,"admin-promoted",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"})};case "remove":return {type:"remove",text:O(a,"user-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"})};default:return null}return null},S=V=>!(I(V==null?void 0:V.id)||V!=null&&V.actions&&["removedAdmin","madeAdmin","remove"].includes(V.actions)),D=!m&&(g==null?void 0:g.length)===0,T=m&&(g==null?void 0:g.length)===0,L=m&&(g==null?void 0:g.length)>0,E=J.useRef(false);J.useEffect(()=>{E.current=false;},[l==null?void 0:l.conversationId]),J.useEffect(()=>{!m&&(g==null?void 0:g.length)>0&&(E.current=true);},[m,g==null?void 0:g.length]);let B=m&&!E.current,W=[],q=(l==null?void 0:l.conversationId)||(l!=null&&l.id?`temp-${l.id}`:null),Y=q?((R=d==null?void 0:d[q])==null?void 0:R.filter(V=>V==null?void 0:V.isTemporary))||[]:[],H=null;if(g==null||g.forEach(V=>{if(!S(V))return;let _=k(V==null?void 0:V.createdAt);if(!_)return;let $=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$);let oe=P(V);oe?W.push({type:"system",content:oe.text,icon:oe.icon,id:`system-${V==null?void 0:V.id}`,timestamp:_}):W.push({type:"message",msg:V});}),Y==null||Y.forEach(V=>{let _=new Date(V==null?void 0:V.timestamp),$=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$),W.push({type:"message",msg:V});}),(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&(r!=null&&r.action)&&r.action!=="MESSAGE_DELETED"){let V=new Date,_=N(V);H!==_&&(W.push({type:"date",dateLabel:_,id:`date-${_}`}),H=_);let $="",oe=null;switch(r.action){case "removedAdmin":$=O(a,"admin-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"});break;case "madeAdmin":$=O(a,"admin-promoted",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"});break;case "remove":$=O(a,"user-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"});break}$&&W.push({type:"system",content:$,icon:oe,id:`system-action-${Date.now()}`,timestamp:V});}let z=({content:V,icon:_})=>J__namespace.default.createElement("div",{className:"flex justify-center my-2"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},_,J__namespace.default.createElement("span",{className:"text-xs text-gray-600 font-medium text-center"},V)));return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full relative min-h-0"},J__namespace.default.createElement("div",{className:U(D||T?"flex items-center justify-center flex-1 w-full":"flex flex-col flex-1 p-4 gap-[1.5rem] rounded-lg w-full")},J__namespace.default.createElement("div",{ref:f,className:"pointer-events-none"}),T&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)),D&&J__namespace.default.createElement("div",{className:"flex flex-1 items-center justify-center !w-full !h-[50dvh]"},J__namespace.default.createElement("span",{className:"text-gray-500 text-center"},i)),!T&&!D&&(W==null?void 0:W.map((V,_)=>{var ne,me,Me,Se,Ze,ze;if(V.type==="date")return J__namespace.default.createElement("div",{key:V.id,className:"flex items-center my-4"},J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}),J__namespace.default.createElement("span",{className:"mx-4 text-xs text-gray-500 font-medium"},V.dateLabel),J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}));if(V.type==="system")return J__namespace.default.createElement(z,{key:V.id,content:V.content,icon:V.icon});if(I((ne=V.msg)==null?void 0:ne.id))return J__namespace.default.createElement("div",{key:(me=V.msg)==null?void 0:me.id,className:"flex justify-center my-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},J__namespace.default.createElement(lucideReact.Trash2,{size:14,className:"text-gray-500"}),J__namespace.default.createElement("span",{className:"text-xs text-gray-500 italic"},O(a,"message-deleted"))));let oe=((Me=V==null?void 0:V.msg)==null?void 0:Me.senderId)===(s==null?void 0:s.id),K=c.includes((Ze=(Se=V==null?void 0:V.msg)==null?void 0:Se.id)!=null?Ze:"");return J__namespace.default.createElement("div",{key:(ze=V==null?void 0:V.msg)==null?void 0:ze.id,className:"relative"},c.length>0&&J__namespace.default.createElement("div",{className:"absolute flex items-center h-full z-10",style:{left:"0",paddingRight:oe?"0.5rem":"0",paddingLeft:oe?"0":"0.5rem"}},J__namespace.default.createElement("input",{type:"checkbox",checked:K,onChange:()=>{var mt,Ct;let{selectForwardMessage:Ye}=it.getState();Ye((Ct=(mt=V==null?void 0:V.msg)==null?void 0:mt.id)!=null?Ct:"");},onClick:Ye=>Ye.stopPropagation(),className:"w-4 h-4 text-primary border-gray-300 rounded focus:ring-primary cursor-pointer"})),J__namespace.default.createElement(pc,{message:V==null?void 0:V.msg,isOwnMessage:oe,ref:_===(W==null?void 0:W.length)-1?u:void 0}))})),!T&&!D&&(L||B)&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full mb-2"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)))))}var ym="pending_chat_data",oM=60*30;function iV(){var e;if(typeof window=="undefined")return null;try{let t=cookiesNext.getCookie(ym);if((!t||typeof t!="string")&&(t=(e=sessionStorage.getItem(ym))!=null?e:""),!t||typeof t!="string")return null;let o=decodeURIComponent(atob(t));return JSON.parse(o)}catch(t){return null}}function lV(){if(typeof window!="undefined")try{cookiesNext.deleteCookie(ym,{path:"/"}),sessionStorage.removeItem(ym);}catch(e){}}function rM(e){if(!(typeof window=="undefined"||!e))try{let t=iV();(t==null?void 0:t.id)===e&&lV();}catch(t){}}var nM=()=>{let{sendMessage:e}=Qo(),{page:t,user:o,queryClient:r}=M(),{selectedChat:n,chatHeaderOption:a,onSelectChat:s,onSelectChatHeaderOption:i}=it(),l=["page-messages",n==null?void 0:n.conversationId],{mutate:d,isPending:c}=ge({mutationFn:f=>j(void 0,[f],function*({createMessageInput:p}){let u=n==null?void 0:n.id,g=F(y({},p),{senderId:t==null?void 0:t.id,pageId:t==null?void 0:t.id,participants:[u,t==null?void 0:t.id].filter(Boolean)});return e(g),g}),onMutate({createMessageInput:p}){let f={conversationId:n==null?void 0:n.conversationId,body:p==null?void 0:p.body,senderId:t==null?void 0:t.id,createdAt:new Date,updatedAt:new Date};H3({conversationId:n==null?void 0:n.conversationId,message:f,queryClient:r}),O3({conversationId:n==null?void 0:n.conversationId,chatHeaderOption:a,pageId:t==null?void 0:t.id,message:f,queryClient:r});},onError(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]});},onSuccess(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]}),i==null||i("filter-all"),s==null||s(n),n!=null&&n.id&&rM(n.id);}});return {sendMessage:d,isSendingAMessage:c}};var cV=e=>e.type.startsWith("image/")?e.type==="image/gif"?"gif":"image":e.type.startsWith("video/")?"video":"file";function sM(){let{uploadMultipleFiles:e}=B2(),{onSelectChat:t,draftMessages:o,setDraftMessage:r,replyMessage:n,setReplyMessage:a,addTemporaryMessage:s,removeTemporaryMessage:i}=it(),{conversationExists:l}=G2(),{createANewConversation:d}=lm(),{sendMessage:c}=nM(),{locale:p,page:f}=M(),[u,g]=J.useState([]),[m,v]=J.useState(false),h=it(P=>P.selectedChat),b=(h==null?void 0:h.conversationId)||(h!=null&&h.id?`temp-${h.id}`:null),x=b&&o[b]||"",w=P=>{b&&r(b,P);},C=(P,S)=>{let D=P instanceof File?P:new File([P],"audio-message.webm",{type:"audio/webm"}),T={file:D,type:S,previewUrl:S==="media"||S==="audio"?URL.createObjectURL(D):void 0};g(L=>[...L,T]);},A=P=>{g(S=>S.filter((D,T)=>T!==P));},k=P=>{if(!b)return;let S=((P==null?void 0:P.convertedBody)||x).trim();if(!S&&u.length===0&&!n)return;let D=[];u.length>0&&u.forEach(L=>{let E=L.type==="media"?cV(L.file):L.type,B=`sending.${E}`,W=O(p||"pt",B),q=crypto.randomUUID();D.push(q),s(b,W,E,q);});let T=L=>{let E=B=>{let W={conversationId:L,body:S||void 0,attachments:B,replyMessageId:n==null?void 0:n.id,mentions:P==null?void 0:P.mentions};c({createMessageInput:W}),D.forEach(q=>i(L,q));};u.length>0?e({files:u.map(B=>B.file),path:`chat/${L}`,ownerType:"chat"},{onSuccess(B){let W=B.map((q,Y)=>({type:u[Y].type,url:q}));E(W);},onError(){D.forEach(B=>i(L,B));}}):E();};if(h!=null&&h.conversationId)T(h.conversationId);else if(l(b))T(b);else {let L=h!=null&&h.id?{id:h.id,name:h.name,avatar:h.avatar}:void 0;if(!(L!=null&&L.id)){console.error("N\xE3o \xE9 poss\xEDvel criar conversa: targetUser.id n\xE3o est\xE1 definido");return}d(L,E=>{var W;let B=(W=E==null?void 0:E.createConversation)==null?void 0:W.id;B&&(it.getState().replaceTempConversationId(b,B),t==null||t(F(y({},h),{conversationId:B})),T(B));});}w(""),g([]),a==null||a(null);},N=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k());};J.useEffect(()=>()=>{u.forEach(P=>P.previewUrl&&URL.revokeObjectURL(P.previewUrl));},[u]);let I=x.trim().length>0||u.length>0||!!n;return {message:x,attachedFiles:u,isRecording:m,setIsRecording:v,setDraft:w,attachFile:C,removeFile:A,send:k,handleKeyDown:N,hasMessageOrFiles:I,replyMessage:n,setReplyMessage:a}}function e8(){let {isMobile:e}=Ne(),{selectedChat:t}=it(),o=J.useRef(null);J.useRef(null);let n=J.useRef(null),[a,s]=J.useState(false),[i,l]=J.useState(""),d=J.useMemo(()=>t!=null&&t.participants?t.participants.map(H=>{let z=(H==null?void 0:H.user)||H;return !(z!=null&&z.id)||!(z!=null&&z.name)?null:{id:z.id,name:z.name,avatar:z.avatar,slug:z.slug}}).filter(H=>H!==null):[],[t==null?void 0:t.participants]),c=J.useMemo(()=>{if(d.length!==0)return {participants:{type:"participants",trigger:"@",items:d,renderItem:(H,z)=>J__namespace.default.createElement("div",{className:`flex items-center gap-2 p-2 cursor-pointer ${z?"bg-blue-50 text-primary":"hover:bg-gray-50"}`},J__namespace.default.createElement(ae,{src:H.avatar,name:H.name,className:"w-6 h-6"}),J__namespace.default.createElement("span",{className:"text-sm font-medium"},H.name))}}},[d]),{message:p,attachedFiles:f,isRecording:u,setIsRecording:g,setDraft:m,attachFile:v,removeFile:h,send:b,handleKeyDown:x,hasMessageOrFiles:w,replyMessage:C}=sM(),A=d.length>0&&(t==null?void 0:t.isGroup)===true;W2({mentions:c,onSubmit:H=>{var z;if(H.content){let G=ec(H.content);m(G);let R=((z=H.participants)==null?void 0:z.map(V=>({mentionedId:V.id})))||[];b({mentions:R,convertedBody:G});}}});W2({onSubmit:H=>{H.content&&(m(H.content),b());}});let {showMentionDropdown:P,filteredParticipants:S,selectedMentionIndex:D,mentionPosition:T,handleMentionInput:L,insertMention:E,handleKeyNavigation:B}=Lp({participants:d,shouldUseMentions:A,textAreaRef:o,onInsertMention:(H,z)=>{l(H),m(H);}}),W=()=>{if(A&&c){let H=i.trim();if(H){let z=ec(H),G=d.filter(R=>H.includes(`@${R.name}`)).map(R=>({mentionedId:R.id}));b({mentions:G,convertedBody:z});}else (f.length>0||C)&&b();}else (p.trim()||f.length>0||C)&&b();},q=A?i.trim().length>0||f.length>0||!!C:w,Y=H=>{let z=H.emoji,G=o.current;if(!G)return;let R=G.selectionStart,V=G.selectionEnd;if(A){let _=i.substring(0,R)+z+i.substring(V),$=_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_;l($),m($);}else {let _=p.substring(0,R)+z+p.substring(V);m(_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_);}requestAnimationFrame(()=>{G.focus(),G.selectionStart=G.selectionEnd=R+z.length;});};return J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},u&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},J__namespace.default.createElement(Ip,{onSend:H=>{v(H,"audio"),g(false);},onCancel:()=>g(false)})),f.length>0&&J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto pb-2"},f.map((H,z)=>{var G;return J__namespace.default.createElement("div",{key:z,className:"relative flex-shrink-0"},H.type==="media"&&H.previewUrl&&J__namespace.default.createElement("div",{className:"relative w-20 h-20 rounded-lg overflow-hidden"},J__namespace.default.createElement("img",{src:H.previewUrl,alt:"Preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{onClick:()=>h(z),className:"absolute top-1 right-1 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs"},"\xD7")),H.type==="audio"&&J__namespace.default.createElement(K2,{src:(G=H.previewUrl)!=null?G:""}))})),J__namespace.default.createElement("div",{className:"flex items-end gap-2 w-full"},A?J__namespace.default.createElement(Rd,{ref:o,placeholder:"Digite sua mensagem...",value:i,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;l(G),m(G);},onMentionDetected:L,onKeyDown:H=>{let z=B(H);if(z==="select"){E(S[D],i);return}z||H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),W());},onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!i.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(i.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))}):J__namespace.default.createElement(U1,{ref:o,placeholder:"Digite sua mensagem...",value:p,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;m(G);},onKeyDown:x,onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!p.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(p.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))})),P&&A&&J__namespace.default.createElement(Dp,{participants:S,selectedIndex:D,position:T,onSelectParticipant:H=>{E(H,i);}}),J__namespace.default.createElement(react.AnimatePresence,null,a&&J__namespace.default.createElement(react.motion.div,{ref:n,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute bottom-full right-0 mb-2 z-50"})))}function uV(){let{selectedChat:e}=it(),{isMobile:t}=Ne(),{page:o}=M();return J__namespace.default.createElement("div",{className:U("!w-full !h-full !flex !flex-col !gap-6 !p-6 !bg-white !border !border-[#E4EBF1] !rounded-xl !box-border !flex-1 !min-h-0","lg:!max-w-[44.188rem] lg:!max-h-[62.25rem]","md:!max-w-[90vw] md:!p-5 md:!gap-5","sm:!rounded-lg sm:!p-4 sm:!gap-4 sm:!h-auto sm:!max-h-[85vh]","max-sm:!max-w-full max-sm:!border-0 max-sm:!rounded-none max-sm:!h-[100vh] max-sm:!p-3 max-sm:!gap-3")},e?J__namespace.default.createElement(J__namespace.default.Fragment,null,!t&&J__namespace.default.createElement(Ju,null),J__namespace.default.createElement("div",{className:"!flex-1 !min-h-0 !overflow-y-auto !scroll-smooth !pb-24 scrollbar-hide"},J__namespace.default.createElement($u,null)),J__namespace.default.createElement(Ni,null),J__namespace.default.createElement(e8,null)):J__namespace.default.createElement(om,null))}var dM={sharePost:"Share post",repostPost:"Repost post",addDescriptionToRepost:"Add a description to your repost...",startPost:"Start a post...",shareNow:"Share now",repost:"Repost",share:"Share",shareInChat:"Share in chat",searchContacts:"Search contacts",shareIn:"Share on",all:"All",connections:"Connections",communities:"Communities",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copy link",linkCopied:"Link copied to clipboard!",selectPageToShare:"Select page to share",cancel:"Cancel",sharing:"Sharing...",errorSharingPost:"Error sharing post",errorSharingMessage:"An error occurred while sharing the post",noContactsFound:"No contacts found",tryDifferentSearch:"Try a different search",shareProfile:"Share profile",shareInCommunity:"Share in community",noCommunitiesAvailable:"No communities available to share.",noPagesAvailable:"No pages available to share.",shareProfilePersonalMessage:"Hello, I would like to share my profile with you.",shareProfileMessage:"Hello, I would like to share this profile with you. Check it out:",errorUploadTitle:"Upload error",errorUploadMessage:"Could not upload QR code.",errorUploadImageMessage:"Could not get image URL.",errorProfileInfo:"Profile information not available.",profileSharedTitle:"Profile shared",profileSharedMessage:"Profile shared successfully!",errorSharingProfileTitle:"Error sharing",errorSharingProfileMessage:"An error occurred while sharing the profile."};var cM={sharePost:"Partager la publication",repostPost:"Republier la publication",addDescriptionToRepost:"Ajouter une description \xE0 votre republication...",startPost:"Commencer une publication...",shareNow:"Partager maintenant",repost:"Republier",share:"Partager",shareInChat:"Partager dans le chat",searchContacts:"Rechercher des contacts",shareIn:"Partager sur",all:"Tous",connections:"Connexions",communities:"Communaut\xE9s",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copier le lien",linkCopied:"Lien copi\xE9 dans le presse-papiers !",selectPageToShare:"S\xE9lectionner la page \xE0 partager",cancel:"Annuler",sharing:"Partage en cours...",errorSharingPost:"Erreur lors du partage de la publication",errorSharingMessage:"Une erreur s'est produite lors du partage de la publication",noContactsFound:"Aucun contact trouv\xE9",tryDifferentSearch:"Essayez une recherche diff\xE9rente",shareProfile:"Partager le profil",shareInCommunity:"Partager dans la communaut\xE9",noCommunitiesAvailable:"Aucune communaut\xE9 disponible pour partager.",noPagesAvailable:"Aucune page disponible pour partager.",shareProfilePersonalMessage:"Bonjour, j'aimerais partager mon profil avec vous.",shareProfileMessage:"Bonjour, j'aimerais partager ce profil avec vous. D\xE9couvrez-le :",errorUploadTitle:"Erreur de t\xE9l\xE9chargement",errorUploadMessage:"Impossible de t\xE9l\xE9charger le code QR.",errorUploadImageMessage:"Impossible d'obtenir l'URL de l'image.",errorProfileInfo:"Informations du profil non disponibles.",profileSharedTitle:"Profil partag\xE9",profileSharedMessage:"Profil partag\xE9 avec succ\xE8s !",errorSharingProfileTitle:"Erreur de partage",errorSharingProfileMessage:"Une erreur s'est produite lors du partage du profil."};var pM={sharePost:"Compartilhar publica\xE7\xE3o",repostPost:"Repostar publica\xE7\xE3o",addDescriptionToRepost:"Adicionar uma descri\xE7\xE3o ao seu repost...",startPost:"Comece uma publica\xE7\xE3o...",shareNow:"Compartilhar agora",repost:"Repost",share:"Compartilhar",shareInChat:"Compartilhar no chat",searchContacts:"Pesquisar contatos",shareIn:"Compartilhar em",all:"Todos",connections:"Conex\xF5es",communities:"Comunidades",facebook:"Facebook",linkedin:"LinkedIn",pages:"P\xE1ginas",copyLink:"Copiar link",linkCopied:"Link copiado para a \xE1rea de transfer\xEAncia!",selectPageToShare:"Selecionar p\xE1gina para partilhar",cancel:"Cancelar",sharing:"Partilhando...",errorSharingPost:"Erro ao compartilhar publica\xE7\xE3o",errorSharingMessage:"Ocorreu um erro ao compartilhar a publica\xE7\xE3o",noContactsFound:"Nenhum contato encontrado",tryDifferentSearch:"Tente uma pesquisa diferente",shareProfile:"Partilhar perfil",shareInCommunity:"Compartilhar na comunidade",noCommunitiesAvailable:"Nenhuma comunidade dispon\xEDvel para compartilhar.",noPagesAvailable:"Nenhuma p\xE1gina dispon\xEDvel para compartilhar.",shareProfilePersonalMessage:"Ol\xE1, gostaria de partilhar com voc\xEA o meu perfil.",shareProfileMessage:"Ol\xE1, gostaria de compartilhar este perfil com voc\xEA. Confira:",errorUploadTitle:"Erro ao fazer upload",errorUploadMessage:"N\xE3o foi poss\xEDvel fazer upload do QR code.",errorUploadImageMessage:"N\xE3o foi poss\xEDvel obter a URL da imagem.",errorProfileInfo:"Informa\xE7\xF5es do perfil n\xE3o dispon\xEDveis.",profileSharedTitle:"Perfil compartilhado",profileSharedMessage:"Perfil compartilhado com sucesso!",errorSharingProfileTitle:"Erro ao compartilhar",errorSharingProfileMessage:"Ocorreu um erro ao compartilhar o perfil."};var fV={pt:y({},pM),en:y({},dM),fr:y({},cM)};function se(e,t){return fV[e][t]}function o8({postId:e,onClose:t,searchTerm:o=""}){let[r,n]=J.useState(""),{isSendingMessageIntoChat:a,sendMessageIntoChat:s}=Wx(),{user:i,locale:l}=M(),{conversationId:d,isCheckingConversation:c}=Yp(r),{createANewConversation:p,isCreatingANewConversation:f}=vp({avatar:"",id:r,name:""}),{contacts:u,isFetchingNextPage:g,fetchNextPage:m,hasNextPage:v,isGettingContacts:h}=zn({perPage:50,slug:i==null?void 0:i.slug,sort:"",sortDir:"",filter:{name:o.trim()||null,slug:null}}),b=J.useRef(null),x=J.useRef(null),w=J.useRef(false),C=J.useCallback(P=>{P[0].isIntersecting&&v&&!g&&m();},[m,v,g]);J.useEffect(()=>{let P={root:b.current,rootMargin:"0px",threshold:1},S=new IntersectionObserver(C,P);return x.current&&S.observe(x.current),()=>{x.current&&S.unobserve(x.current);}},[C]);let A=J.useCallback(P=>{c||a||f||n(P);},[c,a,f]);J.useEffect(()=>{if(!r||!e||w.current)return;j(this,null,function*(){if(w.current=true,d!=null&&d.length){s({conversationId:d,postId:e}),t==null||t(),w.current=false;return}p(void 0,{onSuccess(S){var D;s({conversationId:(D=S==null?void 0:S.createConversation)==null?void 0:D.id,postId:e}),t==null||t();},onSettled(){w.current=false;}});});},[r,d,e,p,s,t]);let k=()=>Array.from({length:6}).map((P,S)=>J__namespace.default.createElement("div",{key:S,className:"flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]"},J__namespace.default.createElement(Zt,{className:"h-12 w-12 rounded-full mb-1 sm:h-14 sm:w-14"}),J__namespace.default.createElement(Zt,{className:"h-3 w-[48px] sm:w-[56px]"}))),N=()=>J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center w-full text-center"},J__namespace.default.createElement("div",{className:"text-gray-shade8 mb-2"},J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5"},J__namespace.default.createElement("path",{d:"M16 16l4 4"}),J__namespace.default.createElement("circle",{cx:"10",cy:"10",r:"6"}))),J__namespace.default.createElement("p",{className:"text-sm text-gray-shade8"},o.trim()?`${se(l!=null?l:"pt","noContactsFound")} "${o.trim()}"`:se(l!=null?l:"pt","noContactsFound")),o.trim()&&J__namespace.default.createElement("p",{className:"text-xs text-gray-shade8 mt-1"},se(l!=null?l:"pt","tryDifferentSearch"))),I=h||a||c||f;return J__namespace.default.createElement("div",{className:U("w-full overflow-x-auto scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent","hover:scrollbar-thumb-gray-shatext-gray-shade8 scroll-smooth snap-x","overflow-y-hidden touch-pan-x"),ref:b},J__namespace.default.createElement("div",{className:"flex gap-4 py-2 min-w-max"},h&&k(),!h&&(u==null?void 0:u.length)===0&&N(),!h&&(u==null?void 0:u.length)>0&&(u==null?void 0:u.map(P=>{var T;let S=(T=P==null?void 0:P.followed)!=null?T:P==null?void 0:P.follower,D=I;return J__namespace.default.createElement("div",{key:P.id,onClick:()=>!D&&A(S==null?void 0:S.id),className:U("flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]","transition-opacity select-none",D?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80")},J__namespace.default.createElement(ae,{src:S==null?void 0:S.avatar,name:S==null?void 0:S.name,className:"mb-1"}),J__namespace.default.createElement("span",{className:"text-sm text-gray-shade8 truncate w-[64px] sm:w-[72px]"},S==null?void 0:S.name))})),!h&&(u==null?void 0:u.length)>0&&J__namespace.default.createElement("div",{ref:x,className:"flex items-center justify-center min-w-[80px]"},g&&k(),!g&&v&&J__namespace.default.createElement("span",{className:"text-xs text-gray-shade8 animate-pulse"},"\u22EF"))),J__namespace.default.createElement("div",{className:"absolute right-0 top-0 bottom-0 w-10 bg-gradient-to-l from-background pointer-events-none"}))}var Z1=zustand.create(e=>({isDownloadModalOpen:false,openDownloadModal:()=>e({isDownloadModalOpen:true}),closeDownloadModal:()=>e({isDownloadModalOpen:false}),toggleDownloadModal:()=>e(t=>({isDownloadModalOpen:!t.isDownloadModalOpen}))}));var bm=()=>{let{locale:e="pt"}=M(),t=o=>he(e,o);return {title:t("download.banner.title"),subtitle:t("download.banner.subtitle"),button:t("download.banner.button"),trigger:t("download.banner.trigger")}};function vV(e){let{fontSize:t=20}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.554 7.296c2.451 0 4.446 2.06 4.446 4.592v5.032c0 2.526-1.99 4.58-4.436 4.58H6.448C3.996 21.5 2 19.441 2 16.91v-5.033c0-2.525 1.991-4.58 4.438-4.58h11.116z",fill:"#fff"}),J__namespace.createElement("path",{d:"M12.546 16.037l2.91-2.967c.3-.307.3-.8-.003-1.107a.762.762 0 00-1.089.002l-1.593 1.626V3.282a.777.777 0 00-.77-.782.776.776 0 00-.77.782v10.309l-1.594-1.626a.762.762 0 00-1.089-.002.788.788 0 00-.002 1.107l2.91 2.967c.144.148.34.231.544.231a.766.766 0 00.546-.23z",fill:"#fff"}))}var yV=J__namespace.memo(vV),fM=yV;var bV="mirantes-b2c-app://",xV="https://apps.apple.com/br/app/mirantes/idYOUR_APP_ID",wV="https://play.google.com/store/apps/details?id=com.desenvolvimentomirantes.mirantes&hl=pt-BR";function gM(){if(typeof window=="undefined")return;let e=Date.now(),t=/iPhone|iPad|iPod/i.test(navigator.userAgent),o=/Android/i.test(navigator.userAgent),r=`${bV}home`;window.location.href=r,setTimeout(()=>{Date.now()-e<2e3&&(t?window.location.href=xV:o&&(window.location.href=wV));},1500);}var CV=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-10"},J__namespace.createElement("path",{fill:"#ebebeb",d:"M0 382.4h500v.25H0zM416.78 398.49h33.12v.25h-33.12zM322.53 401.21h8.69v.25h-8.69zM396.59 389.21h19.19v.25h-19.19zM52.46 390.89h43.19v.25H52.46zM104.56 390.89h6.33v.25h-6.33zM131.47 395.11h93.68v.25h-93.68zM237 337.8H43.91a5.71 5.71 0 0 1-5.7-5.71V60.66a5.71 5.71 0 0 1 5.7-5.66H237a5.71 5.71 0 0 1 5.71 5.71v271.38a5.71 5.71 0 0 1-5.71 5.71M43.91 55.2a5.46 5.46 0 0 0-5.45 5.46v271.43a5.46 5.46 0 0 0 5.45 5.46H237a5.47 5.47 0 0 0 5.46-5.46V60.66A5.47 5.47 0 0 0 237 55.2ZM453.31 337.8h-193.1a5.72 5.72 0 0 1-5.71-5.71V60.66a5.72 5.72 0 0 1 5.71-5.66h193.1a5.71 5.71 0 0 1 5.69 5.66v271.43a5.71 5.71 0 0 1-5.69 5.71M260.21 55.2a5.47 5.47 0 0 0-5.46 5.46v271.43a5.47 5.47 0 0 0 5.46 5.46h193.1a5.47 5.47 0 0 0 5.46-5.46V60.66a5.47 5.47 0 0 0-5.46-5.46Z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M280.25 96.3h148.01v98.39H280.25z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M283.54 96.3h148.01v98.39H283.54z"}),J__namespace.createElement("path",{fill:"#fff",d:"M425.65 102.93v85.13H289.44v-85.13z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M425.65 102.93v85.13h-2.49v-85.13z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M285.98 167.86h143.13v8.9H285.98z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M438 85.32H273.81a.91.91 0 0 0-.91.91.91.91 0 0 0 .91.91H438a.91.91 0 0 0 .91-.91.91.91 0 0 0-.91-.91"}),J__namespace.createElement("circle",{cx:"438.9",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M281.48 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.23 1.23 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.22 1.23v2.64a1.22 1.22 0 0 1-1.22 1.22M424.28 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.24 1.24 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.23 1.23v2.64a1.23 1.23 0 0 1-1.23 1.22"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M285.98 86.23H437.7v95.6H285.98z",opacity:"0.4"}),J__namespace.createElement("circle",{cx:"296.09",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M377.72 199.16c2.66 3.68-2 7 1.84 10.81s-1.21 7.33-2.09 11.37 5 5.9 5.51 10.9-8.65 11-8.65 11-6.53-1.6-8.89-6.36 2-8-1.09-11.48-9.79-5.48-8.39-10-3.67-6-5.51-10c-.62-1.36-.25-.38.52-1.91 1.93-3.84 5.29-10.72 9.53-11.43 8.92-1.56 13.5 1.94 17.22 7.1"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M379.16 193.1c-3.31 4 1.72 8-3 12.12s.78 8.38 1.44 13-6.13 6.37-7.12 12 8.9 13 8.9 13 7.52-1.39 10.58-6.63-1.62-9.16 2.18-12.94 11.53-5.56 10.31-10.77 4.64-6.52 7.06-11c.87-1.61.47-3.6-.39-5.5a13.88 13.88 0 0 0-10.64-7.82c-5.88-.92-14.67-1.07-19.32 4.54"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M410 227s-.81 22.85-31.58 22.85S346.88 227 346.88 227Z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M279.68 256.14h29.04v119.73h-29.04zM285.26 375.88h143.2v6.52h-143.2z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M434.03 375.88H308.72V256.15h125.31z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 330.31H319.63v-28.6h103.49Zm-102.49-1h101.49v-26.6H320.63ZM423.12 364.06H319.63v-28.59h103.49Zm-102.49-1h101.49v-26.59H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 306.84h-24a2.32 2.32 0 0 1-2.31-2.31 2.32 2.32 0 0 1 2.31-2.32h24a2.32 2.32 0 0 1 2.31 2.32 2.32 2.32 0 0 1-2.31 2.31"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 296.56H319.63V268h103.49Zm-102.49-1h101.49V269H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 273.09h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32M383.4 340.6h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M308.72 249.85H437.9v6.3H308.72z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M308.72 256.14h-33.1v-6.3h33.1z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M95.11 82h106.82v121.18H95.11z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M96.68 82h113.99v121.18H96.68z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.12 91.55v102.08h-94.89V91.55z"}),J__namespace.createElement("rect",{width:"52.6",height:"48.89",x:"127.37",y:"118.14",fill:"#f5f5f5",rx:"9.41",transform:"rotate(90 153.67 142.59)"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M197.47 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-20.55 28.86 114.8 114.8 0 0 1 3.6 29.89v29.34a3.86 3.86 0 0 0 3.85 3.86h93.16v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M298.86 310.55a22.94 22.94 0 1 0-45.1 6 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h29.41a3.86 3.86 0 0 0 3.86-3.86v-31.1a105 105 0 0 1 3.55-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M160.69 323.75h83.61v55.86h-83.61z"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M108.95 250.57h77.18a17.36 17.36 0 0 1 17.36 17.36v68.45H91.58v-68.45a17.36 17.36 0 0 1 17.36-17.36Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M130 250.57h78.86a16.53 16.53 0 0 1 16.53 16.53v69.28H113.45v-69.29A16.53 16.53 0 0 1 130 250.57"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M166.16 318.65h77.07a5 5 0 0 1 5 5v12.67a5 5 0 0 1-5 5h-77.07a1.51 1.51 0 0 1-1.51-1.51v-19.66a1.51 1.51 0 0 1 1.51-1.5"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M83.34 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-21.29 21.39 23.3 23.3 0 0 0 .74 7.47 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h93.15v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M184.73 310.55a22.94 22.94 0 1 0-45.1 6 115.2 115.2 0 0 1 3.59 29.89v29.34a3.86 3.86 0 0 0 3.86 3.86h29.41a3.85 3.85 0 0 0 3.85-3.86v-31.1a104.5 104.5 0 0 1 3.56-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M274.28 382.4H85a2.79 2.79 0 0 1-2.8-2.79h194.87a2.79 2.79 0 0 1-2.79 2.79"})),J__namespace.createElement("g",{id:"freepik--Shadow--inject-10"},J__namespace.createElement("ellipse",{id:"freepik--path--inject-10",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),J__namespace.createElement("g",{id:"freepik--Character--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M308.2 123.37c2.86 5.16 3.1 26.23-2.2 30.55-9.74-1.07-17.49-5.78-17.74-16.87s14.55-23.38 19.94-13.68"}),J__namespace.createElement("path",{fill:"#263238",d:"M297.9 151c-2.56-1.5-6.82 3.44-7.8 11.91-.7 6-12.46-4.14-16.29 5.68-3.94-3-6.21-14.69 5-11.57 7.93 2.19 6.26.87 9.92-4 3.84-5.1 6.73-4.74 9.17-2.02"}),J__namespace.createElement("path",{fill:"#803e3c",d:"m331.63 176.61.91 2.85c.32 1 .66 2 1 2.95.67 2 1.37 4 2.11 5.92s1.47 3.94 2.26 5.9l1.15 3 .29.74.07.17a1.4 1.4 0 0 0-.42-.25c-.22-.08-.31 0-.18 0a2.3 2.3 0 0 0 .71-.11 11 11 0 0 0 2.25-1 42.4 42.4 0 0 0 4.88-3.34c1.62-1.26 3.21-2.61 4.76-4s3.14-2.84 4.65-4.26l3.07 2.6c-1.28 1.84-2.64 3.52-4 5.23s-2.92 3.31-4.5 4.9a40 40 0 0 1-5.28 4.52 17.8 17.8 0 0 1-3.48 1.9 9.5 9.5 0 0 1-2.41.62 6.6 6.6 0 0 1-3.33-.45 6.9 6.9 0 0 1-3.2-3l-.26-.54-.36-.73c-.48-1-1-2-1.42-2.94-.91-2-1.82-4-2.64-6s-1.65-4.06-2.41-6.12c-.37-1-.72-2.09-1.07-3.14s-.66-2.08-1-3.31Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{d:"m328.96 170.9 2.64 14.29-5.33 3.62z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m355.91 185.52 3.17-7.64 3.91 7.64s-2.54 3.8-5.89 2.87Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m362.57 177.09 5.03 2.02-4.61 6.41-3.91-7.64z"}),J__namespace.createElement("rect",{width:"29.73",height:"29.73",x:"360.51",y:"171.77",fill:"#0B89CE",rx:"7.75",transform:"rotate(-38.93 375.37 186.633)"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M310.62 406.45h8.36l.56-19.37h-8.36zM254.5 381.5l7.69 3.28 10.06-16.76-7.69-3.28z"}),J__namespace.createElement("path",{fill:"#263238",d:"m263.66 383.64-8-4.92a.66.66 0 0 0-.87.14l-4.8 5.77a1.34 1.34 0 0 0 .36 2c2.82 1.67 4.27 2.33 7.79 4.49 2.16 1.34 5.19 3.5 8.18 5.34s5-1 3.89-2.05c-4.85-4.63-4.71-6.83-5.62-9.57a2.2 2.2 0 0 0-.93-1.2M319.27 405.48h-9.4a.66.66 0 0 0-.66.57l-1.07 7.44a1.33 1.33 0 0 0 1.34 1.48c3.27-.05 4.85-.25 9-.25 2.54 0 7.8.27 11.31.27s3.7-3.47 2.24-3.79c-6.56-1.41-9.14-3.35-11.34-5.2a2.17 2.17 0 0 0-1.42-.52"}),J__namespace.createElement("path",{d:"m319.54 387.09-.29 9.98h-8.36l.28-9.98zM264.55 364.75l7.7 3.27-5.19 8.64-7.7-3.28z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73s4 1.4-4 50.47h-34c.57-13.82.58-22.34-6-50.71a100 100 0 0 1 14.42-1.9 107 107 0 0 1 15.42 0c6.65.6 14.16 2.14 14.16 2.14"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M301.24 148.22c1 5 1.94 14.06-1.53 17.37 0 0 1.36 5 10.58 5 10.13 0 4.84-5 4.84-5-5.53-1.32-5.39-5.43-4.43-9.28Z"}),J__namespace.createElement("path",{d:"m305.1 151.52 5.6 4.78a15.6 15.6 0 0 0-.47 2.74c-2.12-.31-5-2.63-5.25-4.84a7.5 7.5 0 0 1 .12-2.68",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M296.66 139.36c1.93 8.07 2.58 11.53 7.44 15 7.3 5.21 16.79 1.07 17.31-7.42.46-7.64-2.78-19.55-11.34-21.39a11.31 11.31 0 0 0-13.41 13.81"}),J__namespace.createElement("path",{fill:"#263238",d:"M319.67 134.09a.38.38 0 0 0 .33-.09.4.4 0 0 0 0-.56 4 4 0 0 0-3.39-1.26.41.41 0 0 0-.32.47.4.4 0 0 0 .47.31 3.15 3.15 0 0 1 2.67 1 .4.4 0 0 0 .24.13"}),J__namespace.createElement("path",{fill:"#fff",d:"M319.46 143.73a2.57 2.57 0 0 1-1.6-.6 7.8 7.8 0 0 1-2.32-5.32c-.31-3.6 1-6.65 3.09-6.95a2.43 2.43 0 0 1 1.91.58 7.8 7.8 0 0 1 2.32 5.32c.32 3.59-1 6.65-3.08 7a1.7 1.7 0 0 1-.32-.03m-.51-12.4h-.25c-1.76.26-2.95 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.94 1.94 0 0 0 1.53.48c1.76-.26 3-3.14 2.67-6.42a7.28 7.28 0 0 0-2.14-5 2.08 2.08 0 0 0-1.23-.48Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M308.74 395.54h13.27l.97-4.23-14.86-.52z"}),J__namespace.createElement("path",{d:"M310.62 234.23C319 251 312.3 281.62 309.35 293c-1.52-17.1-4.07-38-6.05-53.37 1.26-8.63 3.47-13.14 7.32-5.4",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m257.74 371.24 13.02 5.54 3.12-3.5-15.01-7.21z"}),J__namespace.createElement("path",{fill:"#263238",d:"M309.43 139.47c.12.66.57 1.14 1 1.06s.69-.68.58-1.34-.57-1.14-1-1.07-.69.68-.58 1.35M316.94 138.15c.12.66.57 1.14 1 1.06s.69-.68.57-1.34-.56-1.14-1-1.07-.68.68-.57 1.35"}),J__namespace.createElement("path",{fill:"#263238",d:"m317.33 136.88 1.52-.75s-.6 1.39-1.52.75"}),J__namespace.createElement("path",{fill:"#630f0f",d:"M315.16 139.64a18 18 0 0 0 3.11 3.82 2.91 2.91 0 0 1-2.29.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M313 147.45a6.5 6.5 0 0 0 1.13-.1.2.2 0 0 0 .16-.23.19.19 0 0 0-.29-.12 5.34 5.34 0 0 1-4.65-1.31.2.2 0 1 0-.29.27 5.56 5.56 0 0 0 3.94 1.49M308.89 127.46c.15 3.85-5.91 16.21-10.28 17.17-5.36-3.5-6.86-9.63-3.74-16.17s13.74-8.25 14.02-1"}),J__namespace.createElement("path",{fill:"#263238",d:"M311.65 121.25c-3.39-.53-15 1.42-8.78 5s11.17 4.55 14.19 4.19 2.05-8.03-5.41-9.19"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M295.64 145.27a6.06 6.06 0 0 0 3.28 3.27c2 .8 3.19-.91 2.84-2.89-.31-1.79-1.72-4.36-3.79-4.31a2.73 2.73 0 0 0-2.33 3.93"}),J__namespace.createElement("path",{fill:"#263238",d:"M306.75 137.19a.4.4 0 0 0 .24-.2 3.14 3.14 0 0 1 2.25-1.76.39.39 0 0 0 .35-.44.39.39 0 0 0-.44-.35 3.92 3.92 0 0 0-2.87 2.19.4.4 0 0 0 .18.54.42.42 0 0 0 .29.02"}),J__namespace.createElement("path",{fill:"#fff",d:"M311 145a2.6 2.6 0 0 1-1.6-.61 7.8 7.8 0 0 1-2.32-5.32c-.31-3.59 1-6.65 3.08-6.95a2.53 2.53 0 0 1 1.92.58 7.8 7.8 0 0 1 2.32 5.32c.31 3.6-1 6.65-3.08 7Zm-.51-12.41h-.25c-1.76.26-3 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.93 1.93 0 0 0 1.53.48c1.76-.25 2.95-3.13 2.67-6.42a7.3 7.3 0 0 0-2.14-5 2.08 2.08 0 0 0-1.3-.49Z"}),J__namespace.createElement("path",{fill:"#803e3c",d:"M289.62 178.33a109 109 0 0 1-1.95 14.25 77.5 77.5 0 0 1-4 14l-.75 1.73-.19.43a4 4 0 0 1-.22.44 3.5 3.5 0 0 1-.32.52 5 5 0 0 1-1 1.12 4.7 4.7 0 0 1-1.65.84 5 5 0 0 1-2.92-.08 6.2 6.2 0 0 1-1.57-.75 12.2 12.2 0 0 1-1.88-1.54 37.4 37.4 0 0 1-4.68-6 102 102 0 0 1-6.79-12.53l3.49-2c2.72 3.67 5.45 7.42 8.33 10.85a37 37 0 0 0 4.33 4.57 4.4 4.4 0 0 0 .87.59c.08 0 .14 0 0 0a2.1 2.1 0 0 0-1.21 0c-1.48.44-1.65 1.75-1.34.74l.55-1.51a90 90 0 0 0 3.11-12.87c.76-4.39 1.34-9 1.76-13.33Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M285.29 167.49c-3.4 1-7.49 12.75-7.49 12.75l13.2 9.44s4.81-9.78 3.38-14.18c-1.49-4.58-5.21-9.19-9.09-8.01"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M267.05 386.82a1.13 1.13 0 0 0 .7-.7.65.65 0 0 0 0-.68c-.6-.88-3.62-.81-4-.8a.2.2 0 0 0-.18.12.2.2 0 0 0 0 .21c.79.79 2.27 2.08 3.31 1.88Zm-2.81-1.82c1.21 0 2.83.17 3.14.64a.27.27 0 0 1 0 .3.75.75 0 0 1-.54.49c-.55.14-1.51-.43-2.6-1.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M265.13 384.79c.92-.29 1.89-.8 2.11-1.37a.7.7 0 0 0-.28-.82 1 1 0 0 0-.86-.21c-1.19.21-2.46 2.25-2.52 2.34a.23.23 0 0 0 0 .2.19.19 0 0 0 .17.1 4.9 4.9 0 0 0 1.38-.24m.92-2h.12a.65.65 0 0 1 .54.13c.2.16.19.28.15.37-.2.55-1.72 1.21-2.73 1.34a5 5 0 0 1 1.92-1.82ZM322.41 406.94a3.2 3.2 0 0 0 2-.51 1.1 1.1 0 0 0 .35-1 .63.63 0 0 0-.33-.52c-1-.56-4.36 1.14-4.74 1.33a.21.21 0 0 0-.1.21.18.18 0 0 0 .16.16 13.5 13.5 0 0 0 2.66.33m1.49-1.73a.8.8 0 0 1 .37.07.27.27 0 0 1 .13.22.71.71 0 0 1-.23.63c-.51.46-1.88.54-3.73.23a10.7 10.7 0 0 1 3.46-1.15"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M319.82 406.65h.08c1-.45 3-2.25 2.81-3.2 0-.23-.19-.5-.74-.56a1.43 1.43 0 0 0-1.1.34c-1.05.88-1.24 3.13-1.25 3.22a.18.18 0 0 0 .08.18.2.2 0 0 0 .12.02m2-3.39h.12c.36 0 .38.19.39.23.09.57-1.25 2-2.26 2.61a4.57 4.57 0 0 1 1.06-2.58 1 1 0 0 1 .68-.26Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m290.8 216.21-.87 3c-.12.23.16.47.55.47h35c.3 0 .56-.15.58-.34l.3-3c0-.21-.24-.39-.58-.39h-34.43a.63.63 0 0 0-.55.26"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"m309.82 138.19 1.52-.74s-.6 1.39-1.52.74"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m262.14 191.88-8-4.25 7.89-3.16s4.15 3.41 3.48 6.82Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m251.32 181.2 6.75-2.29 4.98 6.5-8.88 2.22z"})),J__namespace.createElement("g",{id:"freepik--Smartphone--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M253.64 132.52H140a11.71 11.71 0 0 0-11.73 12l5.88 259.72a12.38 12.38 0 0 0 12.28 12h113.63a11.71 11.71 0 0 0 11.73-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#263238",d:"M256.47 132.52H142.8a11.7 11.7 0 0 0-11.72 12L137 404.24a12.37 12.37 0 0 0 12.27 12H262.9a11.7 11.7 0 0 0 11.72-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#fff",d:"m138.51 404.09-5.88-259.42a7.93 7.93 0 0 1 8-8.15h118.23a8.37 8.37 0 0 1 8.33 8.15l5.88 259.42a7.94 7.94 0 0 1-8 8.15H146.84a8.37 8.37 0 0 1-8.33-8.15"}),J__namespace.createElement("path",{fill:"#263238",d:"M178.12 401.65a1 1 0 0 1-.47-.12l-3.93-2.25a1 1 0 0 1-.49-.82.94.94 0 0 1 .48-.83l3.83-2.24a1 1 0 0 1 1.44.8l.1 4.48a1 1 0 0 1-1 1Zm-4.16-2.8 3.94 2.24a.45.45 0 0 0 .68-.4l-.1-4.49a.47.47 0 0 0-.69-.38l-3.79 2.24a.46.46 0 0 0-.23.4.48.48 0 0 0 .23.39ZM205.58 401.93a3.56 3.56 0 0 1-3.54-3.46 3.38 3.38 0 0 1 3.4-3.48 3.57 3.57 0 0 1 3.54 3.47 3.37 3.37 0 0 1-3.4 3.47m-.14-6.44a2.9 2.9 0 0 0-2.08.87 2.86 2.86 0 0 0-.82 2.1 3.06 3.06 0 0 0 3 3 2.87 2.87 0 0 0 2.9-3 3.06 3.06 0 0 0-3-2.97M237.81 401.58h-4.57a.85.85 0 0 1-.85-.83l-.1-4.57a.78.78 0 0 1 .23-.59.8.8 0 0 1 .59-.25h4.57a.85.85 0 0 1 .85.83l.1 4.57a.8.8 0 0 1-.82.84m-4.7-5.74a.33.33 0 0 0-.23.1.28.28 0 0 0-.09.23l.1 4.57a.35.35 0 0 0 .35.34h4.57a.32.32 0 0 0 .19-.08.34.34 0 0 0 .09-.24l-.1-4.57a.35.35 0 0 0-.35-.34ZM146.05 141.61a1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1M148.86 140.46a1 1 0 0 0-1 1v1.15a1 1 0 0 0 1 1 1 1 0 0 0 .95-1v-1.15a1 1 0 0 0-.95-1M151.67 139.28a1 1 0 0 0-.95 1l.05 2.33a1 1 0 0 0 1 1 1 1 0 0 0 1-1l-.06-2.33a1 1 0 0 0-1.04-1M250.75 138.78h-6.83a1.6 1.6 0 0 0-1.6 1.64v1.5a1.69 1.69 0 0 0 1.68 1.64h6.83a1.6 1.6 0 0 0 1.6-1.64v-1.5a1.7 1.7 0 0 0-1.68-1.64M253.49 139.82h-.37a.41.41 0 0 0-.42.43v1.84a.45.45 0 0 0 .44.43h.37a.42.42 0 0 0 .41-.43v-1.84a.43.43 0 0 0-.43-.43M229.47 143.56H170.3a6.93 6.93 0 0 1-6.94-5.14l-.72-3.42h74.11l-.56 3.42a6.56 6.56 0 0 1-6.72 5.14"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.93 404.13a2.07 2.07 0 0 1-2.05-2L134.11 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04M269.65 404.13a2.07 2.07 0 0 1-2-2L261.83 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M172 211.4h-14.27a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.54 7.75M245.11 211.4h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M208.54 211.4h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M172.8 248.21h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M209.37 248.21h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M173.63 285H159.4a8 8 0 0 1-7.92-7.75l-.33-14.23a7.57 7.57 0 0 1 7.58-7.75H173a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.62 7.75M246.78 285h-14.23a8 8 0 0 1-7.92-7.75l-.33-14.23a7.56 7.56 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M210.21 285H196a8 8 0 0 1-7.93-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M174.46 321.84h-14.22a8 8 0 0 1-7.93-7.75l-.31-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M247.61 321.84h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.58 7.75M211 321.84h-14.19a8 8 0 0 1-7.92-7.75l-.33-14.23a7.58 7.58 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.61 7.75M175.87 383.8h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.22a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.57 7.75M249 383.8h-14.21a8 8 0 0 1-7.93-7.75l-.32-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.59 7.75M212.44 383.8h-14.23a8 8 0 0 1-7.92-7.75l-.29-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.22a7.56 7.56 0 0 1-7.61 7.75M251.91 169.39H149.03l-.02-1.11h102.87zM250.44 156.81a4.07 4.07 0 0 0-5.76 0 4 4 0 0 0-.49 4.92l-1.48 1.5a1 1 0 0 0 1.48 1.45l1.47-1.51a4 4 0 0 0 4.78-6.36m-5 5.13a3.15 3.15 0 1 1 4.51 0 3.19 3.19 0 0 1-4.53 0Z"}))),hM=CV;var vM=({isOpen:e,onClose:t,children:o,hideCloseButton:r=false,closeOnClickOutside:n=true,className:a=""})=>{let[s]=J__namespace.default.useState(()=>{if(typeof window=="undefined")return null;let d=document.createElement("div");return d.setAttribute("id","mobile-modal-portal"),d});J.useEffect(()=>{if(s)return document.body.appendChild(s),()=>{s.parentNode&&s.parentNode.removeChild(s);}},[s]);let i=()=>{n&&t();},l=d=>d.stopPropagation();return !s||!e?null:tQ.createPortal(J__namespace.default.createElement("div",{className:"fixed inset-0 z-[100] lg:hidden flex items-center justify-center bg-black/50",onClick:i},J__namespace.default.createElement("div",{className:`w-[90%] max-w-xs bg-white rounded-2xl p-6 shadow-lg flex flex-col gap-4 relative ${a}`,onClick:l},!r&&J__namespace.default.createElement("button",{onClick:t,className:"absolute top-4 right-4",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),o)),s)};var xm=()=>{let{isMobile:e}=Ne(),{isDownloadModalOpen:t,closeDownloadModal:o}=Z1(),{title:r,subtitle:n,button:a}=bm(),s=J__namespace.default.createElement("div",{className:"flex flex-col gap-4"},J__namespace.default.createElement("div",{className:"flex justify-center mb-4 w-[12.6rem] h-[12.6rem] mx-auto"},J__namespace.default.createElement(hM,null)),J__namespace.default.createElement("h2",{className:"text-[20px] font-bold text-gray-900 mb-2"},r),J__namespace.default.createElement("p",{className:"text-[#050910] text-[14px] mb-6"},n),J__namespace.default.createElement(le,{className:"w-full h-[48px] bg-primary hover:bg-primary/80 text-white text-[14px] font-bold rounded-[10px] py-2 border-0 outline-none flex items-center justify-center gap-2",onClick:gM},a,J__namespace.default.createElement(fM,{fontSize:24})));return e?J__namespace.default.createElement(vM,{isOpen:t,onClose:o,closeOnClickOutside:true,className:"text-center"},s):J__namespace.default.createElement(qe,{isOpen:t,onClose:o,closeOnClickOutside:true,disableFullScreen:true,hideCloseButton:false,className:"max-w-[327px] max-h-[512px] rounded-2xl bg-white p-6 shadow-lg text-center"},s)};var NV=()=>{let{openDownloadModal:e}=Z1(),{trigger:t}=bm();return J__namespace.default.createElement(le,{onClick:e,variant:"outline",className:"w-fit"},t)};var r8="mirantes_download_banner_last_shown",bc="mirantes_download_banner_count",wm="mirantes_download_banner_session_shown",n8=(e={})=>{let{maxShows:t=5,initialDelayMs:o=5e3,mobileOnly:r=true}=e,{openDownloadModal:n,isDownloadModalOpen:a}=Z1(),[s,i]=J.useState(false),l=()=>typeof window=="undefined"?false:window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=()=>!(typeof window=="undefined"||r&&!l()||sessionStorage.getItem(wm)==="true"||parseInt(sessionStorage.getItem(bc)||"0")>=t),c=()=>{if(typeof window=="undefined")return;let g=new Date().toISOString(),m=parseInt(sessionStorage.getItem(bc)||"0");sessionStorage.setItem(r8,g),sessionStorage.setItem(bc,(m+1).toString()),sessionStorage.setItem(wm,"true");},p=()=>{d()&&(i(true),setTimeout(()=>{n(),c(),i(false);},o));},f=()=>{typeof window!="undefined"&&(sessionStorage.removeItem(r8),sessionStorage.removeItem(bc),sessionStorage.removeItem(wm));},u=()=>{if(typeof window=="undefined")return {lastShown:null,showsCount:0,remainingShows:t,canShow:false,shownInCurrentSession:false};let g=sessionStorage.getItem(r8),m=parseInt(sessionStorage.getItem(bc)||"0"),v=sessionStorage.getItem(wm)==="true";return {lastShown:g?new Date(g):null,showsCount:m,remainingShows:Math.max(0,t-m),canShow:d(),shownInCurrentSession:v}};return J.useEffect(()=>{let g=setTimeout(()=>{p();},1e3);return ()=>clearTimeout(g)},[]),{shouldShow:s,showBanner:p,resetBannerData:f,getBannerStats:u,canShow:d(),isMobile:l()}};var kV=({maxShows:e=5,initialDelayMs:t=3e4,mobileOnly:o=true,enabled:r=true})=>{let{canShow:n}=n8({maxShows:e,initialDelayMs:t,mobileOnly:o});return !r||!n?J__namespace.default.createElement(xm,null):J__namespace.default.createElement(xm,null)};function TV(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.732c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.371 13.32v1.078a.625.625 0 001.25 0V13.32a.625.625 0 00-1.25 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M11.072 2.167c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174v2.889c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11.5c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V7.49a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 3.417c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#687588"}))}var DV=J__namespace.memo(TV),bM=DV;var xM=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false})}));function FV({onClick:e}){let{openModal:t}=xM(),{locale:o}=M();return J__namespace.default.createElement(re,{onClick:r=>{t(),e==null||e(r);},leftElement:J__namespace.default.createElement(bM,null),className:"text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent",label:Je(o,"explore.oportunities.jobs")})}var n0=({rating:e})=>J__namespace.default.createElement("div",{className:"flex gap-[2px] my-1"},Array.from({length:5}).map((t,o)=>{let r=o+1,n=e>=r,a=!n&&e>=r-.5,s="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return a?J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:`half-star-${o}`},J__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),J__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),J__namespace.default.createElement("path",{d:s,fill:`url(#half-star-${o})`})):J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:s,fill:n?"#EC991C":"rgba(236,153,28,0.3)"}))}));var xc=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),CM=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var MM=vf.gql`
993
+ `;var RC=()=>{var u;let{chatApiUrl:e,user:t,page:o}=M(),{searchMessage:r,selectedChat:n}=it(),a=usehooks.useDebounce(r,400),s=m=>j(void 0,[m],function*({pageParam:g=1}){var b,x;let v={body:a};return o!=null&&o.id&&(v.pageId=o.id),yield vf__default.default(e!=null?e:"",$C,{conversationId:(b=n==null?void 0:n.conversationId)!=null?b:"",options:{filter:v,page:g,perPage:20,sort:"createdAt",sortDir:"desc"}},{"x-access-token":(x=t==null?void 0:t.accessToken)!=null?x:""})}),i=a!=null&&a.length?["page-messages",n==null?void 0:n.conversationId,a,o==null?void 0:o.id]:["page-messages",n==null?void 0:n.conversationId,o==null?void 0:o.id],{data:l,isLoading:d,fetchNextPage:c,hasNextPage:p}=yt({queryKey:i,queryFn:s,initialPageParam:1,enabled:!!(n!=null&&n.conversationId)&&!!(o!=null&&o.id),staleTime:0,getNextPageParam:g=>{var v;let m=(v=g==null?void 0:g.getMessagesByConversation)==null?void 0:v.meta;if(m)return ((m==null?void 0:m.currentPage)||0)<((m==null?void 0:m.total)||0)?((m==null?void 0:m.currentPage)||0)+1:void 0}});return {messages:(u=l==null?void 0:l.pages.flatMap(g=>{var m,v;return (v=(m=g==null?void 0:g.getMessagesByConversation)==null?void 0:m.data)!=null?v:[]}).reverse())!=null?u:[],isGettingMessages:d,fetchNextPage:c,hasNextPage:p}};function eM(e){let{fetchNextPage:t,hasNextPage:o,isGettingMessages:r,messages:n}=RC(),a=o||false,s=J.useRef(null),i=J.useRef(0),l=J.useRef(null),[d,c]=J.useState(false),[p,f]=J.useState(false),[u,g]=J.useState(0),[m,v]=J.useState(false),h=J.useRef(true),[b]=EM__default.default({loading:r,hasNextPage:o,onLoadMore:()=>{s.current&&(i.current=s.current.scrollHeight),t();},disabled:!o,rootMargin:"200px 0px 0px 0px"}),x=J.useRef((n==null?void 0:n.length)||0);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A||!(n!=null&&n.length))return;let k=n.length,N=k>x.current;if(x.current=k,h.current&&!r){h.current=false,setTimeout(()=>{l.current&&l.current.scrollIntoView({behavior:"auto"}),setTimeout(()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,D=I-P-S;f(D<=50);},100);},100);return}p?(l.current&&l.current.scrollIntoView({behavior:"auto"}),c(false),g(0),v(false)):N&&(c(true),g(I=>I+1),v(true),setTimeout(()=>v(false),500));},[n,p,r,e]);let w=J.useRef(p);J.useEffect(()=>{let A=(e==null?void 0:e.current)||s.current;if(!A)return;let k=()=>{let I=A.scrollHeight,P=A.scrollTop,S=A.clientHeight,T=I-P-S<=50;w.current!==T&&(w.current=T,f(T),T&&(c(false),g(0)));},N=setTimeout(()=>{k();},200);return A.addEventListener("scroll",k),()=>{clearTimeout(N),A.removeEventListener("scroll",k);}},[e]),J.useEffect(()=>{if(r&&i.current&&s.current){let A=s.current,k=A.scrollHeight-i.current;A.scrollTop=k+A.scrollTop;}},[r]);let C=J.useCallback(()=>{l.current&&l.current.scrollIntoView({behavior:"smooth"}),c(false),g(0),f(true);},[]);return {containerRef:s,infiniteRef:b,lastMessageRef:l,messages:n,isGettingMessages:r,hasNewMessages:d,newMessageCount:u,isAtBottom:p,isAnimatingUp:m,scrollToBottom:C,hasNextPage:a}}function $u({containerRef:e}){var R;let{setHasMessages:t,hasMessages:o,messageAction:r}=Qo(),{user:n,locale:a,page:s}=M(),i=O(a,"empty-chat"),{selectedChat:l,messages:d,forwardMessageIds:c,clearForwardMessages:p}=it(),{infiniteRef:f,lastMessageRef:u,messages:g,isGettingMessages:m,hasNewMessages:v,newMessageCount:h,scrollToBottom:b,isAtBottom:x}=eM(e),w=J.useRef(b),C=J.useRef({isAtBottom:x,hasNewMessages:v,newMessageCount:h}),A=J.useRef(true);J.useEffect(()=>{w.current=b;},[b]),J.useEffect(()=>{if(A.current){A.current=false,C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};return}if(!(C.current.isAtBottom!==x||C.current.hasNewMessages!==v||C.current.newMessageCount!==h))return;C.current={isAtBottom:x,hasNewMessages:v,newMessageCount:h};let _=setTimeout(()=>{window.dispatchEvent(new CustomEvent("chatScrollState",{detail:{isAtBottom:x,scrollToBottom:w.current,hasNewMessages:v,newMessageCount:h}}));},0);return ()=>clearTimeout(_)},[x,v,h]),J.useEffect(()=>{t==null||t(false);},[o]);function k(V){if(!V)return null;if(typeof V=="number"){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string"&&V.includes("T")){let _=new Date(V);return isNaN(_.getTime())?null:_}if(typeof V=="string")try{let _=dateFns.parse(V,"yyyy-MM-dd HH:mm:ss",new Date);return isNaN(_.getTime())?null:_}catch(_){return null}return null}function N(V){return isNaN(V==null?void 0:V.getTime())?"":dateFns.isToday(V)?O(a,"today"):dateFns.isYesterday(V)?O(a,"yesterday"):dateFns.format(V,"MMMM d, yyyy")}let I=V=>{var _;return (r==null?void 0:r.action)==="MESSAGE_DELETED"&&(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&((_=r==null?void 0:r.messagesIds)==null?void 0:_.includes(V))},P=V=>{if(V!=null&&V.actions)switch(V.actions){case "removedAdmin":return {type:"removedAdmin",text:O(a,"admin-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"})};case "madeAdmin":return {type:"madeAdmin",text:O(a,"admin-promoted",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"})};case "remove":return {type:"remove",text:O(a,"user-removed",{name:(V==null?void 0:V.body)||""}),icon:J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"})};default:return null}return null},S=V=>!(I(V==null?void 0:V.id)||V!=null&&V.actions&&["removedAdmin","madeAdmin","remove"].includes(V.actions)),D=!m&&(g==null?void 0:g.length)===0,T=m&&(g==null?void 0:g.length)===0,L=m&&(g==null?void 0:g.length)>0,E=J.useRef(false);J.useEffect(()=>{E.current=false;},[l==null?void 0:l.conversationId]),J.useEffect(()=>{!m&&(g==null?void 0:g.length)>0&&(E.current=true);},[m,g==null?void 0:g.length]);let B=m&&!E.current,W=[],q=(l==null?void 0:l.conversationId)||(l!=null&&l.id?`temp-${l.id}`:null),Y=q?((R=d==null?void 0:d[q])==null?void 0:R.filter(V=>V==null?void 0:V.isTemporary))||[]:[],H=null;if(g==null||g.forEach(V=>{if(!S(V))return;let _=k(V==null?void 0:V.createdAt);if(!_)return;let $=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$);let oe=P(V);oe?W.push({type:"system",content:oe.text,icon:oe.icon,id:`system-${V==null?void 0:V.id}`,timestamp:_}):W.push({type:"message",msg:V});}),Y==null||Y.forEach(V=>{let _=new Date(V==null?void 0:V.timestamp),$=N(_);H!==$&&(W.push({type:"date",dateLabel:$,id:`date-${$}`}),H=$),W.push({type:"message",msg:V});}),(r==null?void 0:r.conversationId)===(l==null?void 0:l.conversationId)&&(r!=null&&r.action)&&r.action!=="MESSAGE_DELETED"){let V=new Date,_=N(V);H!==_&&(W.push({type:"date",dateLabel:_,id:`date-${_}`}),H=_);let $="",oe=null;switch(r.action){case "removedAdmin":$=O(a,"admin-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-orange-500"});break;case "madeAdmin":$=O(a,"admin-promoted",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.Crown,{size:14,className:"text-yellow-500"});break;case "remove":$=O(a,"user-removed",{name:(r==null?void 0:r.userName)||""}),oe=J__namespace.default.createElement(lucideReact.UserX,{size:14,className:"text-red-500"});break}$&&W.push({type:"system",content:$,icon:oe,id:`system-action-${Date.now()}`,timestamp:V});}let z=({content:V,icon:_})=>J__namespace.default.createElement("div",{className:"flex justify-center my-2"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},_,J__namespace.default.createElement("span",{className:"text-xs text-gray-600 font-medium text-center"},V)));return J__namespace.default.createElement(J__namespace.default.Fragment,null,J__namespace.default.createElement("div",{className:"w-full relative min-h-0"},J__namespace.default.createElement("div",{className:U(D||T?"flex items-center justify-center flex-1 w-full":"flex flex-col flex-1 p-4 gap-[1.5rem] rounded-lg w-full")},J__namespace.default.createElement("div",{ref:f,className:"pointer-events-none"}),T&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)),D&&J__namespace.default.createElement("div",{className:"flex flex-1 items-center justify-center !w-full !h-[50dvh]"},J__namespace.default.createElement("span",{className:"text-gray-500 text-center"},i)),!T&&!D&&(W==null?void 0:W.map((V,_)=>{var ne,me,Me,Se,Ze,ze;if(V.type==="date")return J__namespace.default.createElement("div",{key:V.id,className:"flex items-center my-4"},J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}),J__namespace.default.createElement("span",{className:"mx-4 text-xs text-gray-500 font-medium"},V.dateLabel),J__namespace.default.createElement("div",{className:"flex-grow border-t border-gray-300"}));if(V.type==="system")return J__namespace.default.createElement(z,{key:V.id,content:V.content,icon:V.icon});if(I((ne=V.msg)==null?void 0:ne.id))return J__namespace.default.createElement("div",{key:(me=V.msg)==null?void 0:me.id,className:"flex justify-center my-1"},J__namespace.default.createElement("div",{className:"flex items-center gap-2 bg-gray-100 px-3 py-1.5 rounded-full max-w-xs"},J__namespace.default.createElement(lucideReact.Trash2,{size:14,className:"text-gray-500"}),J__namespace.default.createElement("span",{className:"text-xs text-gray-500 italic"},O(a,"message-deleted"))));let oe=((Me=V==null?void 0:V.msg)==null?void 0:Me.senderId)===(s==null?void 0:s.id),K=c.includes((Ze=(Se=V==null?void 0:V.msg)==null?void 0:Se.id)!=null?Ze:"");return J__namespace.default.createElement("div",{key:(ze=V==null?void 0:V.msg)==null?void 0:ze.id,className:"relative"},c.length>0&&J__namespace.default.createElement("div",{className:"absolute flex items-center h-full z-10",style:{left:"0",paddingRight:oe?"0.5rem":"0",paddingLeft:oe?"0":"0.5rem"}},J__namespace.default.createElement("input",{type:"checkbox",checked:K,onChange:()=>{var mt,Ct;let{selectForwardMessage:Ye}=it.getState();Ye((Ct=(mt=V==null?void 0:V.msg)==null?void 0:mt.id)!=null?Ct:"");},onClick:Ye=>Ye.stopPropagation(),className:"w-4 h-4 text-primary border-gray-300 rounded focus:ring-primary cursor-pointer"})),J__namespace.default.createElement(pc,{message:V==null?void 0:V.msg,isOwnMessage:oe,ref:_===(W==null?void 0:W.length)-1?u:void 0}))})),!T&&!D&&(L||B)&&J__namespace.default.createElement("div",{className:"flex flex-col gap-4 w-full mb-2"},J__namespace.default.createElement(en,null),J__namespace.default.createElement(en,{isOwnMessage:true}),J__namespace.default.createElement(en,null)))))}var ym="pending_chat_data",oM=60*30;function iV(){var e;if(typeof window=="undefined")return null;try{let t=cookiesNext.getCookie(ym);if((!t||typeof t!="string")&&(t=(e=sessionStorage.getItem(ym))!=null?e:""),!t||typeof t!="string")return null;let o=decodeURIComponent(atob(t));return JSON.parse(o)}catch(t){return null}}function lV(){if(typeof window!="undefined")try{cookiesNext.deleteCookie(ym,{path:"/"}),sessionStorage.removeItem(ym);}catch(e){}}function rM(e){if(!(typeof window=="undefined"||!e))try{let t=iV();(t==null?void 0:t.id)===e&&lV();}catch(t){console.error("[Pending Chat] Error in removePendingChatCookieIfMatches:",t);}}var nM=()=>{let{sendMessage:e}=Qo(),{page:t,user:o,queryClient:r}=M(),{selectedChat:n,chatHeaderOption:a,onSelectChat:s,onSelectChatHeaderOption:i}=it(),l=["page-messages",n==null?void 0:n.conversationId],{mutate:d,isPending:c}=ge({mutationFn:f=>j(void 0,[f],function*({createMessageInput:p}){let u=n==null?void 0:n.id,g=F(y({},p),{senderId:t==null?void 0:t.id,pageId:t==null?void 0:t.id,participants:[u,t==null?void 0:t.id].filter(Boolean)});return e(g),g}),onMutate({createMessageInput:p}){let f={conversationId:n==null?void 0:n.conversationId,body:p==null?void 0:p.body,senderId:t==null?void 0:t.id,createdAt:new Date,updatedAt:new Date};H3({conversationId:n==null?void 0:n.conversationId,message:f,queryClient:r}),O3({conversationId:n==null?void 0:n.conversationId,chatHeaderOption:a,pageId:t==null?void 0:t.id,message:f,queryClient:r});},onError(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]});},onSuccess(){r==null||r.invalidateQueries({queryKey:l}),r==null||r.invalidateQueries({queryKey:["page-conversations",t==null?void 0:t.id,a]}),i==null||i("filter-all"),s==null||s(n),n!=null&&n.id&&rM(n.id);}});return {sendMessage:d,isSendingAMessage:c}};var cV=e=>e.type.startsWith("image/")?e.type==="image/gif"?"gif":"image":e.type.startsWith("video/")?"video":"file";function sM(){let{uploadMultipleFiles:e}=B2(),{onSelectChat:t,draftMessages:o,setDraftMessage:r,replyMessage:n,setReplyMessage:a,addTemporaryMessage:s,removeTemporaryMessage:i}=it(),{conversationExists:l}=G2(),{createANewConversation:d}=lm(),{sendMessage:c}=nM(),{locale:p,page:f}=M(),[u,g]=J.useState([]),[m,v]=J.useState(false),h=it(P=>P.selectedChat),b=(h==null?void 0:h.conversationId)||(h!=null&&h.id?`temp-${h.id}`:null),x=b&&o[b]||"",w=P=>{b&&r(b,P);},C=(P,S)=>{let D=P instanceof File?P:new File([P],"audio-message.webm",{type:"audio/webm"}),T={file:D,type:S,previewUrl:S==="media"||S==="audio"?URL.createObjectURL(D):void 0};g(L=>[...L,T]);},A=P=>{g(S=>S.filter((D,T)=>T!==P));},k=P=>{if(!b)return;let S=((P==null?void 0:P.convertedBody)||x).trim();if(!S&&u.length===0&&!n)return;let D=[];u.length>0&&u.forEach(L=>{let E=L.type==="media"?cV(L.file):L.type,B=`sending.${E}`,W=O(p||"pt",B),q=crypto.randomUUID();D.push(q),s(b,W,E,q);});let T=L=>{let E=B=>{let W={conversationId:L,body:S||void 0,attachments:B,replyMessageId:n==null?void 0:n.id,mentions:P==null?void 0:P.mentions};c({createMessageInput:W}),D.forEach(q=>i(L,q));};u.length>0?e({files:u.map(B=>B.file),path:`chat/${L}`,ownerType:"chat"},{onSuccess(B){let W=B.map((q,Y)=>({type:u[Y].type,url:q}));E(W);},onError(){D.forEach(B=>i(L,B));}}):E();};if(h!=null&&h.conversationId)T(h.conversationId);else if(l(b))T(b);else {let L=h!=null&&h.id?{id:h.id,name:h.name,avatar:h.avatar}:void 0;if(!(L!=null&&L.id)){console.error("N\xE3o \xE9 poss\xEDvel criar conversa: targetUser.id n\xE3o est\xE1 definido");return}d(L,E=>{var W;let B=(W=E==null?void 0:E.createConversation)==null?void 0:W.id;B&&(it.getState().replaceTempConversationId(b,B),t==null||t(F(y({},h),{conversationId:B})),T(B));});}w(""),g([]),a==null||a(null);},N=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k());};J.useEffect(()=>()=>{u.forEach(P=>P.previewUrl&&URL.revokeObjectURL(P.previewUrl));},[u]);let I=x.trim().length>0||u.length>0||!!n;return {message:x,attachedFiles:u,isRecording:m,setIsRecording:v,setDraft:w,attachFile:C,removeFile:A,send:k,handleKeyDown:N,hasMessageOrFiles:I,replyMessage:n,setReplyMessage:a}}function e8(){let {isMobile:e}=Ne(),{selectedChat:t}=it(),o=J.useRef(null);J.useRef(null);let n=J.useRef(null),[a,s]=J.useState(false),[i,l]=J.useState(""),d=J.useMemo(()=>t!=null&&t.participants?t.participants.map(H=>{let z=(H==null?void 0:H.user)||H;return !(z!=null&&z.id)||!(z!=null&&z.name)?null:{id:z.id,name:z.name,avatar:z.avatar,slug:z.slug}}).filter(H=>H!==null):[],[t==null?void 0:t.participants]),c=J.useMemo(()=>{if(d.length!==0)return {participants:{type:"participants",trigger:"@",items:d,renderItem:(H,z)=>J__namespace.default.createElement("div",{className:`flex items-center gap-2 p-2 cursor-pointer ${z?"bg-blue-50 text-primary":"hover:bg-gray-50"}`},J__namespace.default.createElement(ae,{src:H.avatar,name:H.name,className:"w-6 h-6"}),J__namespace.default.createElement("span",{className:"text-sm font-medium"},H.name))}}},[d]),{message:p,attachedFiles:f,isRecording:u,setIsRecording:g,setDraft:m,attachFile:v,removeFile:h,send:b,handleKeyDown:x,hasMessageOrFiles:w,replyMessage:C}=sM(),A=d.length>0&&(t==null?void 0:t.isGroup)===true;W2({mentions:c,onSubmit:H=>{var z;if(H.content){let G=ec(H.content);m(G);let R=((z=H.participants)==null?void 0:z.map(V=>({mentionedId:V.id})))||[];b({mentions:R,convertedBody:G});}}});W2({onSubmit:H=>{H.content&&(m(H.content),b());}});let {showMentionDropdown:P,filteredParticipants:S,selectedMentionIndex:D,mentionPosition:T,handleMentionInput:L,insertMention:E,handleKeyNavigation:B}=Lp({participants:d,shouldUseMentions:A,textAreaRef:o,onInsertMention:(H,z)=>{l(H),m(H);}}),W=()=>{if(A&&c){let H=i.trim();if(H){let z=ec(H),G=d.filter(R=>H.includes(`@${R.name}`)).map(R=>({mentionedId:R.id}));b({mentions:G,convertedBody:z});}else (f.length>0||C)&&b();}else (p.trim()||f.length>0||C)&&b();},q=A?i.trim().length>0||f.length>0||!!C:w,Y=H=>{let z=H.emoji,G=o.current;if(!G)return;let R=G.selectionStart,V=G.selectionEnd;if(A){let _=i.substring(0,R)+z+i.substring(V),$=_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_;l($),m($);}else {let _=p.substring(0,R)+z+p.substring(V);m(_.length>0?_.charAt(0).toUpperCase()+_.slice(1):_);}requestAnimationFrame(()=>{G.focus(),G.selectionStart=G.selectionEnd=R+z.length;});};return J__namespace.default.createElement("div",{className:"flex flex-col gap-2"},u&&J__namespace.default.createElement("div",{className:"flex items-center gap-2 p-2 bg-gray-50 rounded-lg"},J__namespace.default.createElement(Ip,{onSend:H=>{v(H,"audio"),g(false);},onCancel:()=>g(false)})),f.length>0&&J__namespace.default.createElement("div",{className:"flex gap-2 overflow-x-auto pb-2"},f.map((H,z)=>{var G;return J__namespace.default.createElement("div",{key:z,className:"relative flex-shrink-0"},H.type==="media"&&H.previewUrl&&J__namespace.default.createElement("div",{className:"relative w-20 h-20 rounded-lg overflow-hidden"},J__namespace.default.createElement("img",{src:H.previewUrl,alt:"Preview",className:"w-full h-full object-cover"}),J__namespace.default.createElement("button",{onClick:()=>h(z),className:"absolute top-1 right-1 bg-red-500 text-white rounded-full w-5 h-5 flex items-center justify-center text-xs"},"\xD7")),H.type==="audio"&&J__namespace.default.createElement(K2,{src:(G=H.previewUrl)!=null?G:""}))})),J__namespace.default.createElement("div",{className:"flex items-end gap-2 w-full"},A?J__namespace.default.createElement(Rd,{ref:o,placeholder:"Digite sua mensagem...",value:i,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;l(G),m(G);},onMentionDetected:L,onKeyDown:H=>{let z=B(H);if(z==="select"){E(S[D],i);return}z||H.key==="Enter"&&!H.shiftKey&&(H.preventDefault(),W());},onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!i.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(i.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))}):J__namespace.default.createElement(U1,{ref:o,placeholder:"Digite sua mensagem...",value:p,onChange:H=>{let z=H.target.value,G=z.length>0?z.charAt(0).toUpperCase()+z.slice(1):z;m(G);},onKeyDown:x,onFocus:()=>{e&&setTimeout(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:"smooth"});},300);},maxRows:8,className:e?"w-full max-h-26 shadow-xs !h-full gap-2 px-3 py-2 rounded-[1.5rem] border border-[#E4EBF1] flex items-center !bg-white flex-1":"w-full max-h-26 shadow-xs !h-full gap-[0.625rem] px-6 py-[1rem] rounded-[1rem] border border-[#E4EBF1] flex items-center !bg-white",inputClassName:"flex-1 w-full !h-auto leading-5 resize-none",leftIcon:J__namespace.default.createElement(U2,{onAttach:v}),rightIcon:J__namespace.default.createElement("div",{className:"flex items-center gap-2"},J__namespace.default.createElement(q2,{showPicker:a,onTogglePicker:s,onSelect:Y}),!p.trim()&&J__namespace.default.createElement(_2,{hasMessage:q,onStart:()=>g(true)}),(p.trim()||f.length>0||!!C)&&J__namespace.default.createElement(V2,{hasMessage:q,onClick:W}))})),P&&A&&J__namespace.default.createElement(Dp,{participants:S,selectedIndex:D,position:T,onSelectParticipant:H=>{E(H,i);}}),J__namespace.default.createElement(react.AnimatePresence,null,a&&J__namespace.default.createElement(react.motion.div,{ref:n,initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},className:"absolute bottom-full right-0 mb-2 z-50"})))}function uV(){let{selectedChat:e}=it(),{isMobile:t}=Ne(),{page:o}=M();return J__namespace.default.createElement("div",{className:U("!w-full !h-full !flex !flex-col !gap-6 !p-6 !bg-white !border !border-[#E4EBF1] !rounded-xl !box-border !flex-1 !min-h-0","lg:!max-w-[44.188rem] lg:!max-h-[62.25rem]","md:!max-w-[90vw] md:!p-5 md:!gap-5","sm:!rounded-lg sm:!p-4 sm:!gap-4 sm:!h-auto sm:!max-h-[85vh]","max-sm:!max-w-full max-sm:!border-0 max-sm:!rounded-none max-sm:!h-[100vh] max-sm:!p-3 max-sm:!gap-3")},e?J__namespace.default.createElement(J__namespace.default.Fragment,null,!t&&J__namespace.default.createElement(Ju,null),J__namespace.default.createElement("div",{className:"!flex-1 !min-h-0 !overflow-y-auto !scroll-smooth !pb-24 scrollbar-hide"},J__namespace.default.createElement($u,null)),J__namespace.default.createElement(Ni,null),J__namespace.default.createElement(e8,null)):J__namespace.default.createElement(om,null))}var dM={sharePost:"Share post",repostPost:"Repost post",addDescriptionToRepost:"Add a description to your repost...",startPost:"Start a post...",shareNow:"Share now",repost:"Repost",share:"Share",shareInChat:"Share in chat",searchContacts:"Search contacts",shareIn:"Share on",all:"All",connections:"Connections",communities:"Communities",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copy link",linkCopied:"Link copied to clipboard!",selectPageToShare:"Select page to share",cancel:"Cancel",sharing:"Sharing...",errorSharingPost:"Error sharing post",errorSharingMessage:"An error occurred while sharing the post",noContactsFound:"No contacts found",tryDifferentSearch:"Try a different search",shareProfile:"Share profile",shareInCommunity:"Share in community",noCommunitiesAvailable:"No communities available to share.",noPagesAvailable:"No pages available to share.",shareProfilePersonalMessage:"Hello, I would like to share my profile with you.",shareProfileMessage:"Hello, I would like to share this profile with you. Check it out:",errorUploadTitle:"Upload error",errorUploadMessage:"Could not upload QR code.",errorUploadImageMessage:"Could not get image URL.",errorProfileInfo:"Profile information not available.",profileSharedTitle:"Profile shared",profileSharedMessage:"Profile shared successfully!",errorSharingProfileTitle:"Error sharing",errorSharingProfileMessage:"An error occurred while sharing the profile."};var cM={sharePost:"Partager la publication",repostPost:"Republier la publication",addDescriptionToRepost:"Ajouter une description \xE0 votre republication...",startPost:"Commencer une publication...",shareNow:"Partager maintenant",repost:"Republier",share:"Partager",shareInChat:"Partager dans le chat",searchContacts:"Rechercher des contacts",shareIn:"Partager sur",all:"Tous",connections:"Connexions",communities:"Communaut\xE9s",facebook:"Facebook",linkedin:"LinkedIn",pages:"Pages",copyLink:"Copier le lien",linkCopied:"Lien copi\xE9 dans le presse-papiers !",selectPageToShare:"S\xE9lectionner la page \xE0 partager",cancel:"Annuler",sharing:"Partage en cours...",errorSharingPost:"Erreur lors du partage de la publication",errorSharingMessage:"Une erreur s'est produite lors du partage de la publication",noContactsFound:"Aucun contact trouv\xE9",tryDifferentSearch:"Essayez une recherche diff\xE9rente",shareProfile:"Partager le profil",shareInCommunity:"Partager dans la communaut\xE9",noCommunitiesAvailable:"Aucune communaut\xE9 disponible pour partager.",noPagesAvailable:"Aucune page disponible pour partager.",shareProfilePersonalMessage:"Bonjour, j'aimerais partager mon profil avec vous.",shareProfileMessage:"Bonjour, j'aimerais partager ce profil avec vous. D\xE9couvrez-le :",errorUploadTitle:"Erreur de t\xE9l\xE9chargement",errorUploadMessage:"Impossible de t\xE9l\xE9charger le code QR.",errorUploadImageMessage:"Impossible d'obtenir l'URL de l'image.",errorProfileInfo:"Informations du profil non disponibles.",profileSharedTitle:"Profil partag\xE9",profileSharedMessage:"Profil partag\xE9 avec succ\xE8s !",errorSharingProfileTitle:"Erreur de partage",errorSharingProfileMessage:"Une erreur s'est produite lors du partage du profil."};var pM={sharePost:"Compartilhar publica\xE7\xE3o",repostPost:"Repostar publica\xE7\xE3o",addDescriptionToRepost:"Adicionar uma descri\xE7\xE3o ao seu repost...",startPost:"Comece uma publica\xE7\xE3o...",shareNow:"Compartilhar agora",repost:"Repost",share:"Compartilhar",shareInChat:"Compartilhar no chat",searchContacts:"Pesquisar contatos",shareIn:"Compartilhar em",all:"Todos",connections:"Conex\xF5es",communities:"Comunidades",facebook:"Facebook",linkedin:"LinkedIn",pages:"P\xE1ginas",copyLink:"Copiar link",linkCopied:"Link copiado para a \xE1rea de transfer\xEAncia!",selectPageToShare:"Selecionar p\xE1gina para partilhar",cancel:"Cancelar",sharing:"Partilhando...",errorSharingPost:"Erro ao compartilhar publica\xE7\xE3o",errorSharingMessage:"Ocorreu um erro ao compartilhar a publica\xE7\xE3o",noContactsFound:"Nenhum contato encontrado",tryDifferentSearch:"Tente uma pesquisa diferente",shareProfile:"Partilhar perfil",shareInCommunity:"Compartilhar na comunidade",noCommunitiesAvailable:"Nenhuma comunidade dispon\xEDvel para compartilhar.",noPagesAvailable:"Nenhuma p\xE1gina dispon\xEDvel para compartilhar.",shareProfilePersonalMessage:"Ol\xE1, gostaria de partilhar com voc\xEA o meu perfil.",shareProfileMessage:"Ol\xE1, gostaria de compartilhar este perfil com voc\xEA. Confira:",errorUploadTitle:"Erro ao fazer upload",errorUploadMessage:"N\xE3o foi poss\xEDvel fazer upload do QR code.",errorUploadImageMessage:"N\xE3o foi poss\xEDvel obter a URL da imagem.",errorProfileInfo:"Informa\xE7\xF5es do perfil n\xE3o dispon\xEDveis.",profileSharedTitle:"Perfil compartilhado",profileSharedMessage:"Perfil compartilhado com sucesso!",errorSharingProfileTitle:"Erro ao compartilhar",errorSharingProfileMessage:"Ocorreu um erro ao compartilhar o perfil."};var fV={pt:y({},pM),en:y({},dM),fr:y({},cM)};function se(e,t){return fV[e][t]}function o8({postId:e,onClose:t,searchTerm:o=""}){let[r,n]=J.useState(""),{isSendingMessageIntoChat:a,sendMessageIntoChat:s}=Wx(),{user:i,locale:l}=M(),{conversationId:d,isCheckingConversation:c}=Yp(r),{createANewConversation:p,isCreatingANewConversation:f}=vp({avatar:"",id:r,name:""}),{contacts:u,isFetchingNextPage:g,fetchNextPage:m,hasNextPage:v,isGettingContacts:h}=zn({perPage:50,slug:i==null?void 0:i.slug,sort:"",sortDir:"",filter:{name:o.trim()||null,slug:null}}),b=J.useRef(null),x=J.useRef(null),w=J.useRef(false),C=J.useCallback(P=>{P[0].isIntersecting&&v&&!g&&m();},[m,v,g]);J.useEffect(()=>{let P={root:b.current,rootMargin:"0px",threshold:1},S=new IntersectionObserver(C,P);return x.current&&S.observe(x.current),()=>{x.current&&S.unobserve(x.current);}},[C]);let A=J.useCallback(P=>{c||a||f||n(P);},[c,a,f]);J.useEffect(()=>{if(!r||!e||w.current)return;j(this,null,function*(){if(w.current=true,d!=null&&d.length){s({conversationId:d,postId:e}),t==null||t(),w.current=false;return}p(void 0,{onSuccess(S){var D;s({conversationId:(D=S==null?void 0:S.createConversation)==null?void 0:D.id,postId:e}),t==null||t();},onSettled(){w.current=false;}});});},[r,d,e,p,s,t]);let k=()=>Array.from({length:6}).map((P,S)=>J__namespace.default.createElement("div",{key:S,className:"flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]"},J__namespace.default.createElement(Zt,{className:"h-12 w-12 rounded-full mb-1 sm:h-14 sm:w-14"}),J__namespace.default.createElement(Zt,{className:"h-3 w-[48px] sm:w-[56px]"}))),N=()=>J__namespace.default.createElement("div",{className:"flex flex-col items-center justify-center w-full text-center"},J__namespace.default.createElement("div",{className:"text-gray-shade8 mb-2"},J__namespace.default.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5"},J__namespace.default.createElement("path",{d:"M16 16l4 4"}),J__namespace.default.createElement("circle",{cx:"10",cy:"10",r:"6"}))),J__namespace.default.createElement("p",{className:"text-sm text-gray-shade8"},o.trim()?`${se(l!=null?l:"pt","noContactsFound")} "${o.trim()}"`:se(l!=null?l:"pt","noContactsFound")),o.trim()&&J__namespace.default.createElement("p",{className:"text-xs text-gray-shade8 mt-1"},se(l!=null?l:"pt","tryDifferentSearch"))),I=h||a||c||f;return J__namespace.default.createElement("div",{className:U("w-full overflow-x-auto scrollbar-thin scrollbar-thumb-muted scrollbar-track-transparent","hover:scrollbar-thumb-gray-shatext-gray-shade8 scroll-smooth snap-x","overflow-y-hidden touch-pan-x"),ref:b},J__namespace.default.createElement("div",{className:"flex gap-4 py-2 min-w-max"},h&&k(),!h&&(u==null?void 0:u.length)===0&&N(),!h&&(u==null?void 0:u.length)>0&&(u==null?void 0:u.map(P=>{var T;let S=(T=P==null?void 0:P.followed)!=null?T:P==null?void 0:P.follower,D=I;return J__namespace.default.createElement("div",{key:P.id,onClick:()=>!D&&A(S==null?void 0:S.id),className:U("flex flex-col items-center text-center min-w-[64px] sm:min-w-[72px]","transition-opacity select-none",D?"opacity-50 cursor-not-allowed":"cursor-pointer hover:opacity-80")},J__namespace.default.createElement(ae,{src:S==null?void 0:S.avatar,name:S==null?void 0:S.name,className:"mb-1"}),J__namespace.default.createElement("span",{className:"text-sm text-gray-shade8 truncate w-[64px] sm:w-[72px]"},S==null?void 0:S.name))})),!h&&(u==null?void 0:u.length)>0&&J__namespace.default.createElement("div",{ref:x,className:"flex items-center justify-center min-w-[80px]"},g&&k(),!g&&v&&J__namespace.default.createElement("span",{className:"text-xs text-gray-shade8 animate-pulse"},"\u22EF"))),J__namespace.default.createElement("div",{className:"absolute right-0 top-0 bottom-0 w-10 bg-gradient-to-l from-background pointer-events-none"}))}var Z1=zustand.create(e=>({isDownloadModalOpen:false,openDownloadModal:()=>e({isDownloadModalOpen:true}),closeDownloadModal:()=>e({isDownloadModalOpen:false}),toggleDownloadModal:()=>e(t=>({isDownloadModalOpen:!t.isDownloadModalOpen}))}));var bm=()=>{let{locale:e="pt"}=M(),t=o=>he(e,o);return {title:t("download.banner.title"),subtitle:t("download.banner.subtitle"),button:t("download.banner.button"),trigger:t("download.banner.trigger")}};function vV(e){let{fontSize:t=20}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M17.554 7.296c2.451 0 4.446 2.06 4.446 4.592v5.032c0 2.526-1.99 4.58-4.436 4.58H6.448C3.996 21.5 2 19.441 2 16.91v-5.033c0-2.525 1.991-4.58 4.438-4.58h11.116z",fill:"#fff"}),J__namespace.createElement("path",{d:"M12.546 16.037l2.91-2.967c.3-.307.3-.8-.003-1.107a.762.762 0 00-1.089.002l-1.593 1.626V3.282a.777.777 0 00-.77-.782.776.776 0 00-.77.782v10.309l-1.594-1.626a.762.762 0 00-1.089-.002.788.788 0 00-.002 1.107l2.91 2.967c.144.148.34.231.544.231a.766.766 0 00.546-.23z",fill:"#fff"}))}var yV=J__namespace.memo(vV),fM=yV;var bV="mirantes-b2c-app://",xV="https://apps.apple.com/br/app/mirantes/idYOUR_APP_ID",wV="https://play.google.com/store/apps/details?id=com.desenvolvimentomirantes.mirantes&hl=pt-BR";function gM(){if(typeof window=="undefined")return;let e=Date.now(),t=/iPhone|iPad|iPod/i.test(navigator.userAgent),o=/Android/i.test(navigator.userAgent),r=`${bV}home`;window.location.href=r,setTimeout(()=>{Date.now()-e<2e3&&(t?window.location.href=xV:o&&(window.location.href=wV));},1500);}var CV=e=>J__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 500 500"},J__namespace.createElement("g",{id:"freepik--background-complete--inject-10"},J__namespace.createElement("path",{fill:"#ebebeb",d:"M0 382.4h500v.25H0zM416.78 398.49h33.12v.25h-33.12zM322.53 401.21h8.69v.25h-8.69zM396.59 389.21h19.19v.25h-19.19zM52.46 390.89h43.19v.25H52.46zM104.56 390.89h6.33v.25h-6.33zM131.47 395.11h93.68v.25h-93.68zM237 337.8H43.91a5.71 5.71 0 0 1-5.7-5.71V60.66a5.71 5.71 0 0 1 5.7-5.66H237a5.71 5.71 0 0 1 5.71 5.71v271.38a5.71 5.71 0 0 1-5.71 5.71M43.91 55.2a5.46 5.46 0 0 0-5.45 5.46v271.43a5.46 5.46 0 0 0 5.45 5.46H237a5.47 5.47 0 0 0 5.46-5.46V60.66A5.47 5.47 0 0 0 237 55.2ZM453.31 337.8h-193.1a5.72 5.72 0 0 1-5.71-5.71V60.66a5.72 5.72 0 0 1 5.71-5.66h193.1a5.71 5.71 0 0 1 5.69 5.66v271.43a5.71 5.71 0 0 1-5.69 5.71M260.21 55.2a5.47 5.47 0 0 0-5.46 5.46v271.43a5.47 5.47 0 0 0 5.46 5.46h193.1a5.47 5.47 0 0 0 5.46-5.46V60.66a5.47 5.47 0 0 0-5.46-5.46Z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M280.25 96.3h148.01v98.39H280.25z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M283.54 96.3h148.01v98.39H283.54z"}),J__namespace.createElement("path",{fill:"#fff",d:"M425.65 102.93v85.13H289.44v-85.13z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M425.65 102.93v85.13h-2.49v-85.13z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M285.98 167.86h143.13v8.9H285.98z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M438 85.32H273.81a.91.91 0 0 0-.91.91.91.91 0 0 0 .91.91H438a.91.91 0 0 0 .91-.91.91.91 0 0 0-.91-.91"}),J__namespace.createElement("circle",{cx:"438.9",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M281.48 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.23 1.23 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.22 1.23v2.64a1.22 1.22 0 0 1-1.22 1.22M424.28 91.32a1.23 1.23 0 0 1-1.23-1.22v-2.64a1.24 1.24 0 0 1 1.23-1.23 1.23 1.23 0 0 1 1.23 1.23v2.64a1.23 1.23 0 0 1-1.23 1.22"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M285.98 86.23H437.7v95.6H285.98z",opacity:"0.4"}),J__namespace.createElement("circle",{cx:"296.09",cy:"86.23",r:"2.27",fill:"#e6e6e6"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M377.72 199.16c2.66 3.68-2 7 1.84 10.81s-1.21 7.33-2.09 11.37 5 5.9 5.51 10.9-8.65 11-8.65 11-6.53-1.6-8.89-6.36 2-8-1.09-11.48-9.79-5.48-8.39-10-3.67-6-5.51-10c-.62-1.36-.25-.38.52-1.91 1.93-3.84 5.29-10.72 9.53-11.43 8.92-1.56 13.5 1.94 17.22 7.1"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M379.16 193.1c-3.31 4 1.72 8-3 12.12s.78 8.38 1.44 13-6.13 6.37-7.12 12 8.9 13 8.9 13 7.52-1.39 10.58-6.63-1.62-9.16 2.18-12.94 11.53-5.56 10.31-10.77 4.64-6.52 7.06-11c.87-1.61.47-3.6-.39-5.5a13.88 13.88 0 0 0-10.64-7.82c-5.88-.92-14.67-1.07-19.32 4.54"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M410 227s-.81 22.85-31.58 22.85S346.88 227 346.88 227Z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M279.68 256.14h29.04v119.73h-29.04zM285.26 375.88h143.2v6.52h-143.2z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M434.03 375.88H308.72V256.15h125.31z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 330.31H319.63v-28.6h103.49Zm-102.49-1h101.49v-26.6H320.63ZM423.12 364.06H319.63v-28.59h103.49Zm-102.49-1h101.49v-26.59H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 306.84h-24a2.32 2.32 0 0 1-2.31-2.31 2.32 2.32 0 0 1 2.31-2.32h24a2.32 2.32 0 0 1 2.31 2.32 2.32 2.32 0 0 1-2.31 2.31"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M423.12 296.56H319.63V268h103.49Zm-102.49-1h101.49V269H320.63Z"}),J__namespace.createElement("path",{fill:"#ebebeb",d:"M383.4 273.09h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32M383.4 340.6h-24a2.33 2.33 0 0 1-2.31-2.32 2.32 2.32 0 0 1 2.31-2.31h24a2.32 2.32 0 0 1 2.31 2.31 2.33 2.33 0 0 1-2.31 2.32"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M308.72 249.85H437.9v6.3H308.72z"}),J__namespace.createElement("path",{fill:"#e6e6e6",d:"M308.72 256.14h-33.1v-6.3h33.1z"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M95.11 82h106.82v121.18H95.11z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M96.68 82h113.99v121.18H96.68z"}),J__namespace.createElement("path",{fill:"#fff",d:"M201.12 91.55v102.08h-94.89V91.55z"}),J__namespace.createElement("rect",{width:"52.6",height:"48.89",x:"127.37",y:"118.14",fill:"#f5f5f5",rx:"9.41",transform:"rotate(90 153.67 142.59)"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M197.47 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-20.55 28.86 114.8 114.8 0 0 1 3.6 29.89v29.34a3.86 3.86 0 0 0 3.85 3.86h93.16v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M298.86 310.55a22.94 22.94 0 1 0-45.1 6 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h29.41a3.86 3.86 0 0 0 3.86-3.86v-31.1a105 105 0 0 1 3.55-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M160.69 323.75h83.61v55.86h-83.61z"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M108.95 250.57h77.18a17.36 17.36 0 0 1 17.36 17.36v68.45H91.58v-68.45a17.36 17.36 0 0 1 17.36-17.36Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M130 250.57h78.86a16.53 16.53 0 0 1 16.53 16.53v69.28H113.45v-69.29A16.53 16.53 0 0 1 130 250.57"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M166.16 318.65h77.07a5 5 0 0 1 5 5v12.67a5 5 0 0 1-5 5h-77.07a1.51 1.51 0 0 1-1.51-1.51v-19.66a1.51 1.51 0 0 1 1.51-1.5"}),J__namespace.createElement("path",{fill:"#f0f0f0",d:"M83.34 287.61c-.53 0-1.07 0-1.61.05a23 23 0 0 0-21.29 21.39 23.3 23.3 0 0 0 .74 7.47 114.8 114.8 0 0 1 3.6 29.89v29.34a3.85 3.85 0 0 0 3.85 3.86h93.15v-92Z"}),J__namespace.createElement("path",{fill:"#f5f5f5",d:"M184.73 310.55a22.94 22.94 0 1 0-45.1 6 115.2 115.2 0 0 1 3.59 29.89v29.34a3.86 3.86 0 0 0 3.86 3.86h29.41a3.85 3.85 0 0 0 3.85-3.86v-31.1a104.5 104.5 0 0 1 3.56-28 23 23 0 0 0 .83-6.13"}),J__namespace.createElement("path",{fill:"#e0e0e0",d:"M274.28 382.4H85a2.79 2.79 0 0 1-2.8-2.79h194.87a2.79 2.79 0 0 1-2.79 2.79"})),J__namespace.createElement("g",{id:"freepik--Shadow--inject-10"},J__namespace.createElement("ellipse",{id:"freepik--path--inject-10",cx:"250",cy:"416.24",fill:"#f5f5f5",rx:"193.89",ry:"11.32"})),J__namespace.createElement("g",{id:"freepik--Character--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M308.2 123.37c2.86 5.16 3.1 26.23-2.2 30.55-9.74-1.07-17.49-5.78-17.74-16.87s14.55-23.38 19.94-13.68"}),J__namespace.createElement("path",{fill:"#263238",d:"M297.9 151c-2.56-1.5-6.82 3.44-7.8 11.91-.7 6-12.46-4.14-16.29 5.68-3.94-3-6.21-14.69 5-11.57 7.93 2.19 6.26.87 9.92-4 3.84-5.1 6.73-4.74 9.17-2.02"}),J__namespace.createElement("path",{fill:"#803e3c",d:"m331.63 176.61.91 2.85c.32 1 .66 2 1 2.95.67 2 1.37 4 2.11 5.92s1.47 3.94 2.26 5.9l1.15 3 .29.74.07.17a1.4 1.4 0 0 0-.42-.25c-.22-.08-.31 0-.18 0a2.3 2.3 0 0 0 .71-.11 11 11 0 0 0 2.25-1 42.4 42.4 0 0 0 4.88-3.34c1.62-1.26 3.21-2.61 4.76-4s3.14-2.84 4.65-4.26l3.07 2.6c-1.28 1.84-2.64 3.52-4 5.23s-2.92 3.31-4.5 4.9a40 40 0 0 1-5.28 4.52 17.8 17.8 0 0 1-3.48 1.9 9.5 9.5 0 0 1-2.41.62 6.6 6.6 0 0 1-3.33-.45 6.9 6.9 0 0 1-3.2-3l-.26-.54-.36-.73c-.48-1-1-2-1.42-2.94-.91-2-1.82-4-2.64-6s-1.65-4.06-2.41-6.12c-.37-1-.72-2.09-1.07-3.14s-.66-2.08-1-3.31Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73c3.44.88 5.85 15.06 5.85 15.06l-9.49 6.46s-9.11-14.31-6.46-18.1c2.76-3.94 5.07-4.7 10.1-3.42"}),J__namespace.createElement("path",{d:"m328.96 170.9 2.64 14.29-5.33 3.62z",opacity:"0.3"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m355.91 185.52 3.17-7.64 3.91 7.64s-2.54 3.8-5.89 2.87Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m362.57 177.09 5.03 2.02-4.61 6.41-3.91-7.64z"}),J__namespace.createElement("rect",{width:"29.73",height:"29.73",x:"360.51",y:"171.77",fill:"#0B89CE",rx:"7.75",transform:"rotate(-38.93 375.37 186.633)"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M310.62 406.45h8.36l.56-19.37h-8.36zM254.5 381.5l7.69 3.28 10.06-16.76-7.69-3.28z"}),J__namespace.createElement("path",{fill:"#263238",d:"m263.66 383.64-8-4.92a.66.66 0 0 0-.87.14l-4.8 5.77a1.34 1.34 0 0 0 .36 2c2.82 1.67 4.27 2.33 7.79 4.49 2.16 1.34 5.19 3.5 8.18 5.34s5-1 3.89-2.05c-4.85-4.63-4.71-6.83-5.62-9.57a2.2 2.2 0 0 0-.93-1.2M319.27 405.48h-9.4a.66.66 0 0 0-.66.57l-1.07 7.44a1.33 1.33 0 0 0 1.34 1.48c3.27-.05 4.85-.25 9-.25 2.54 0 7.8.27 11.31.27s3.7-3.47 2.24-3.79c-6.56-1.41-9.14-3.35-11.34-5.2a2.17 2.17 0 0 0-1.42-.52"}),J__namespace.createElement("path",{d:"m319.54 387.09-.29 9.98h-8.36l.28-9.98zM264.55 364.75l7.7 3.27-5.19 8.64-7.7-3.28z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"M329.27 167.73s4 1.4-4 50.47h-34c.57-13.82.58-22.34-6-50.71a100 100 0 0 1 14.42-1.9 107 107 0 0 1 15.42 0c6.65.6 14.16 2.14 14.16 2.14"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M301.24 148.22c1 5 1.94 14.06-1.53 17.37 0 0 1.36 5 10.58 5 10.13 0 4.84-5 4.84-5-5.53-1.32-5.39-5.43-4.43-9.28Z"}),J__namespace.createElement("path",{d:"m305.1 151.52 5.6 4.78a15.6 15.6 0 0 0-.47 2.74c-2.12-.31-5-2.63-5.25-4.84a7.5 7.5 0 0 1 .12-2.68",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M296.66 139.36c1.93 8.07 2.58 11.53 7.44 15 7.3 5.21 16.79 1.07 17.31-7.42.46-7.64-2.78-19.55-11.34-21.39a11.31 11.31 0 0 0-13.41 13.81"}),J__namespace.createElement("path",{fill:"#263238",d:"M319.67 134.09a.38.38 0 0 0 .33-.09.4.4 0 0 0 0-.56 4 4 0 0 0-3.39-1.26.41.41 0 0 0-.32.47.4.4 0 0 0 .47.31 3.15 3.15 0 0 1 2.67 1 .4.4 0 0 0 .24.13"}),J__namespace.createElement("path",{fill:"#fff",d:"M319.46 143.73a2.57 2.57 0 0 1-1.6-.6 7.8 7.8 0 0 1-2.32-5.32c-.31-3.6 1-6.65 3.09-6.95a2.43 2.43 0 0 1 1.91.58 7.8 7.8 0 0 1 2.32 5.32c.32 3.59-1 6.65-3.08 7a1.7 1.7 0 0 1-.32-.03m-.51-12.4h-.25c-1.76.26-2.95 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.94 1.94 0 0 0 1.53.48c1.76-.26 3-3.14 2.67-6.42a7.28 7.28 0 0 0-2.14-5 2.08 2.08 0 0 0-1.23-.48Z"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M325.27 218.2s6.6 64.42 6.05 89.92c-.57 26.52-10.29 87-10.29 87h-11.31s1.79-58.95.79-85c-1.09-28.4-10.11-91.94-10.11-91.94Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M308.74 395.54h13.27l.97-4.23-14.86-.52z"}),J__namespace.createElement("path",{d:"M310.62 234.23C319 251 312.3 281.62 309.35 293c-1.52-17.1-4.07-38-6.05-53.37 1.26-8.63 3.47-13.14 7.32-5.4",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z"}),J__namespace.createElement("path",{fill:"#fff",d:"M316.3 218.2s-7.69 67-13.5 88.47c-6.9 25.53-33.13 69-33.13 69l-10.49-4.46s16.24-49.36 21.51-62.81c11.26-28.7 1.62-71.47 10.62-90.2Z",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"m257.74 371.24 13.02 5.54 3.12-3.5-15.01-7.21z"}),J__namespace.createElement("path",{fill:"#263238",d:"M309.43 139.47c.12.66.57 1.14 1 1.06s.69-.68.58-1.34-.57-1.14-1-1.07-.69.68-.58 1.35M316.94 138.15c.12.66.57 1.14 1 1.06s.69-.68.57-1.34-.56-1.14-1-1.07-.68.68-.57 1.35"}),J__namespace.createElement("path",{fill:"#263238",d:"m317.33 136.88 1.52-.75s-.6 1.39-1.52.75"}),J__namespace.createElement("path",{fill:"#630f0f",d:"M315.16 139.64a18 18 0 0 0 3.11 3.82 2.91 2.91 0 0 1-2.29.86Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M313 147.45a6.5 6.5 0 0 0 1.13-.1.2.2 0 0 0 .16-.23.19.19 0 0 0-.29-.12 5.34 5.34 0 0 1-4.65-1.31.2.2 0 1 0-.29.27 5.56 5.56 0 0 0 3.94 1.49M308.89 127.46c.15 3.85-5.91 16.21-10.28 17.17-5.36-3.5-6.86-9.63-3.74-16.17s13.74-8.25 14.02-1"}),J__namespace.createElement("path",{fill:"#263238",d:"M311.65 121.25c-3.39-.53-15 1.42-8.78 5s11.17 4.55 14.19 4.19 2.05-8.03-5.41-9.19"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"M295.64 145.27a6.06 6.06 0 0 0 3.28 3.27c2 .8 3.19-.91 2.84-2.89-.31-1.79-1.72-4.36-3.79-4.31a2.73 2.73 0 0 0-2.33 3.93"}),J__namespace.createElement("path",{fill:"#263238",d:"M306.75 137.19a.4.4 0 0 0 .24-.2 3.14 3.14 0 0 1 2.25-1.76.39.39 0 0 0 .35-.44.39.39 0 0 0-.44-.35 3.92 3.92 0 0 0-2.87 2.19.4.4 0 0 0 .18.54.42.42 0 0 0 .29.02"}),J__namespace.createElement("path",{fill:"#fff",d:"M311 145a2.6 2.6 0 0 1-1.6-.61 7.8 7.8 0 0 1-2.32-5.32c-.31-3.59 1-6.65 3.08-6.95a2.53 2.53 0 0 1 1.92.58 7.8 7.8 0 0 1 2.32 5.32c.31 3.6-1 6.65-3.08 7Zm-.51-12.41h-.25c-1.76.26-3 3.14-2.67 6.42a7.28 7.28 0 0 0 2.14 5 1.93 1.93 0 0 0 1.53.48c1.76-.25 2.95-3.13 2.67-6.42a7.3 7.3 0 0 0-2.14-5 2.08 2.08 0 0 0-1.3-.49Z"}),J__namespace.createElement("path",{fill:"#803e3c",d:"M289.62 178.33a109 109 0 0 1-1.95 14.25 77.5 77.5 0 0 1-4 14l-.75 1.73-.19.43a4 4 0 0 1-.22.44 3.5 3.5 0 0 1-.32.52 5 5 0 0 1-1 1.12 4.7 4.7 0 0 1-1.65.84 5 5 0 0 1-2.92-.08 6.2 6.2 0 0 1-1.57-.75 12.2 12.2 0 0 1-1.88-1.54 37.4 37.4 0 0 1-4.68-6 102 102 0 0 1-6.79-12.53l3.49-2c2.72 3.67 5.45 7.42 8.33 10.85a37 37 0 0 0 4.33 4.57 4.4 4.4 0 0 0 .87.59c.08 0 .14 0 0 0a2.1 2.1 0 0 0-1.21 0c-1.48.44-1.65 1.75-1.34.74l.55-1.51a90 90 0 0 0 3.11-12.87c.76-4.39 1.34-9 1.76-13.33Z"}),J__namespace.createElement("path",{fill:"#263238",d:"M285.29 167.49c-3.4 1-7.49 12.75-7.49 12.75l13.2 9.44s4.81-9.78 3.38-14.18c-1.49-4.58-5.21-9.19-9.09-8.01"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M267.05 386.82a1.13 1.13 0 0 0 .7-.7.65.65 0 0 0 0-.68c-.6-.88-3.62-.81-4-.8a.2.2 0 0 0-.18.12.2.2 0 0 0 0 .21c.79.79 2.27 2.08 3.31 1.88Zm-2.81-1.82c1.21 0 2.83.17 3.14.64a.27.27 0 0 1 0 .3.75.75 0 0 1-.54.49c-.55.14-1.51-.43-2.6-1.43"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M265.13 384.79c.92-.29 1.89-.8 2.11-1.37a.7.7 0 0 0-.28-.82 1 1 0 0 0-.86-.21c-1.19.21-2.46 2.25-2.52 2.34a.23.23 0 0 0 0 .2.19.19 0 0 0 .17.1 4.9 4.9 0 0 0 1.38-.24m.92-2h.12a.65.65 0 0 1 .54.13c.2.16.19.28.15.37-.2.55-1.72 1.21-2.73 1.34a5 5 0 0 1 1.92-1.82ZM322.41 406.94a3.2 3.2 0 0 0 2-.51 1.1 1.1 0 0 0 .35-1 .63.63 0 0 0-.33-.52c-1-.56-4.36 1.14-4.74 1.33a.21.21 0 0 0-.1.21.18.18 0 0 0 .16.16 13.5 13.5 0 0 0 2.66.33m1.49-1.73a.8.8 0 0 1 .37.07.27.27 0 0 1 .13.22.71.71 0 0 1-.23.63c-.51.46-1.88.54-3.73.23a10.7 10.7 0 0 1 3.46-1.15"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M319.82 406.65h.08c1-.45 3-2.25 2.81-3.2 0-.23-.19-.5-.74-.56a1.43 1.43 0 0 0-1.1.34c-1.05.88-1.24 3.13-1.25 3.22a.18.18 0 0 0 .08.18.2.2 0 0 0 .12.02m2-3.39h.12c.36 0 .38.19.39.23.09.57-1.25 2-2.26 2.61a4.57 4.57 0 0 1 1.06-2.58 1 1 0 0 1 .68-.26Z"}),J__namespace.createElement("path",{fill:"#263238",d:"m290.8 216.21-.87 3c-.12.23.16.47.55.47h35c.3 0 .56-.15.58-.34l.3-3c0-.21-.24-.39-.58-.39h-34.43a.63.63 0 0 0-.55.26"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M295.42 220.05h-.92c-.19 0-.33-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.18.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M322.85 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.17-.21.36-.21h.92c.18 0 .32.1.31.21l-.43 4c-.02.16-.21.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21"}),J__namespace.createElement("path",{fill:"#fff",d:"M309.13 220.05h-.92c-.18 0-.32-.09-.31-.21l.43-4c0-.11.18-.21.36-.21h.92c.19 0 .33.1.31.21l-.43 4c-.01.16-.17.21-.36.21",opacity:"0.2"}),J__namespace.createElement("path",{fill:"#263238",d:"m309.82 138.19 1.52-.74s-.6 1.39-1.52.74"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m262.14 191.88-8-4.25 7.89-3.16s4.15 3.41 3.48 6.82Z"}),J__namespace.createElement("path",{fill:"#7f3e3b",d:"m251.32 181.2 6.75-2.29 4.98 6.5-8.88 2.22z"})),J__namespace.createElement("g",{id:"freepik--Smartphone--inject-10"},J__namespace.createElement("path",{fill:"#263238",d:"M253.64 132.52H140a11.71 11.71 0 0 0-11.73 12l5.88 259.72a12.38 12.38 0 0 0 12.28 12h113.63a11.71 11.71 0 0 0 11.73-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#263238",d:"M256.47 132.52H142.8a11.7 11.7 0 0 0-11.72 12L137 404.24a12.37 12.37 0 0 0 12.27 12H262.9a11.7 11.7 0 0 0 11.72-12l-5.88-259.72a12.37 12.37 0 0 0-12.27-12"}),J__namespace.createElement("path",{fill:"#fff",d:"m138.51 404.09-5.88-259.42a7.93 7.93 0 0 1 8-8.15h118.23a8.37 8.37 0 0 1 8.33 8.15l5.88 259.42a7.94 7.94 0 0 1-8 8.15H146.84a8.37 8.37 0 0 1-8.33-8.15"}),J__namespace.createElement("path",{fill:"#263238",d:"M178.12 401.65a1 1 0 0 1-.47-.12l-3.93-2.25a1 1 0 0 1-.49-.82.94.94 0 0 1 .48-.83l3.83-2.24a1 1 0 0 1 1.44.8l.1 4.48a1 1 0 0 1-1 1Zm-4.16-2.8 3.94 2.24a.45.45 0 0 0 .68-.4l-.1-4.49a.47.47 0 0 0-.69-.38l-3.79 2.24a.46.46 0 0 0-.23.4.48.48 0 0 0 .23.39ZM205.58 401.93a3.56 3.56 0 0 1-3.54-3.46 3.38 3.38 0 0 1 3.4-3.48 3.57 3.57 0 0 1 3.54 3.47 3.37 3.37 0 0 1-3.4 3.47m-.14-6.44a2.9 2.9 0 0 0-2.08.87 2.86 2.86 0 0 0-.82 2.1 3.06 3.06 0 0 0 3 3 2.87 2.87 0 0 0 2.9-3 3.06 3.06 0 0 0-3-2.97M237.81 401.58h-4.57a.85.85 0 0 1-.85-.83l-.1-4.57a.78.78 0 0 1 .23-.59.8.8 0 0 1 .59-.25h4.57a.85.85 0 0 1 .85.83l.1 4.57a.8.8 0 0 1-.82.84m-4.7-5.74a.33.33 0 0 0-.23.1.28.28 0 0 0-.09.23l.1 4.57a.35.35 0 0 0 .35.34h4.57a.32.32 0 0 0 .19-.08.34.34 0 0 0 .09-.24l-.1-4.57a.35.35 0 0 0-.35-.34ZM146.05 141.61a1 1 0 0 0-1 1 1 1 0 0 0 1 1 1 1 0 0 0 1-1 1 1 0 0 0-1-1M148.86 140.46a1 1 0 0 0-1 1v1.15a1 1 0 0 0 1 1 1 1 0 0 0 .95-1v-1.15a1 1 0 0 0-.95-1M151.67 139.28a1 1 0 0 0-.95 1l.05 2.33a1 1 0 0 0 1 1 1 1 0 0 0 1-1l-.06-2.33a1 1 0 0 0-1.04-1M250.75 138.78h-6.83a1.6 1.6 0 0 0-1.6 1.64v1.5a1.69 1.69 0 0 0 1.68 1.64h6.83a1.6 1.6 0 0 0 1.6-1.64v-1.5a1.7 1.7 0 0 0-1.68-1.64M253.49 139.82h-.37a.41.41 0 0 0-.42.43v1.84a.45.45 0 0 0 .44.43h.37a.42.42 0 0 0 .41-.43v-1.84a.43.43 0 0 0-.43-.43M229.47 143.56H170.3a6.93 6.93 0 0 1-6.94-5.14l-.72-3.42h74.11l-.56 3.42a6.56 6.56 0 0 1-6.72 5.14"}),J__namespace.createElement("path",{fill:"#263238",d:"M141.93 404.13a2.07 2.07 0 0 1-2.05-2L134.11 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04M269.65 404.13a2.07 2.07 0 0 1-2-2L261.83 147a1.94 1.94 0 0 1 1.95-2 2.07 2.07 0 0 1 2.05 2l5.77 255.09a1.94 1.94 0 0 1-1.95 2.04",opacity:"0.1"}),J__namespace.createElement("path",{fill:"#0B89CE",d:"M172 211.4h-14.27a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.54 7.75M245.11 211.4h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M208.54 211.4h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M172.8 248.21h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.23a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M209.37 248.21h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.58 7.75M173.63 285H159.4a8 8 0 0 1-7.92-7.75l-.33-14.23a7.57 7.57 0 0 1 7.58-7.75H173a8 8 0 0 1 7.92 7.75l.33 14.23a7.58 7.58 0 0 1-7.62 7.75M246.78 285h-14.23a8 8 0 0 1-7.92-7.75l-.33-14.23a7.56 7.56 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.57 7.75M210.21 285H196a8 8 0 0 1-7.93-7.75l-.32-14.23a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M174.46 321.84h-14.22a8 8 0 0 1-7.93-7.75l-.31-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.56 7.56 0 0 1-7.59 7.75M247.61 321.84h-14.23a8 8 0 0 1-7.92-7.75l-.32-14.23a7.56 7.56 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.23a7.57 7.57 0 0 1-7.58 7.75M211 321.84h-14.19a8 8 0 0 1-7.92-7.75l-.33-14.23a7.58 7.58 0 0 1 7.58-7.75h14.23a8 8 0 0 1 7.92 7.75l.32 14.23a7.56 7.56 0 0 1-7.61 7.75M175.87 383.8h-14.23a8 8 0 0 1-7.93-7.75l-.32-14.22a7.56 7.56 0 0 1 7.58-7.75h14.22a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.57 7.75M249 383.8h-14.21a8 8 0 0 1-7.93-7.75l-.32-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.93 7.75l.32 14.22a7.55 7.55 0 0 1-7.59 7.75M212.44 383.8h-14.23a8 8 0 0 1-7.92-7.75l-.29-14.22a7.55 7.55 0 0 1 7.57-7.75h14.23a8 8 0 0 1 7.92 7.75l.33 14.22a7.56 7.56 0 0 1-7.61 7.75M251.91 169.39H149.03l-.02-1.11h102.87zM250.44 156.81a4.07 4.07 0 0 0-5.76 0 4 4 0 0 0-.49 4.92l-1.48 1.5a1 1 0 0 0 1.48 1.45l1.47-1.51a4 4 0 0 0 4.78-6.36m-5 5.13a3.15 3.15 0 1 1 4.51 0 3.19 3.19 0 0 1-4.53 0Z"}))),hM=CV;var vM=({isOpen:e,onClose:t,children:o,hideCloseButton:r=false,closeOnClickOutside:n=true,className:a=""})=>{let[s]=J__namespace.default.useState(()=>{if(typeof window=="undefined")return null;let d=document.createElement("div");return d.setAttribute("id","mobile-modal-portal"),d});J.useEffect(()=>{if(s)return document.body.appendChild(s),()=>{s.parentNode&&s.parentNode.removeChild(s);}},[s]);let i=()=>{n&&t();},l=d=>d.stopPropagation();return !s||!e?null:tQ.createPortal(J__namespace.default.createElement("div",{className:"fixed inset-0 z-[100] lg:hidden flex items-center justify-center bg-black/50",onClick:i},J__namespace.default.createElement("div",{className:`w-[90%] max-w-xs bg-white rounded-2xl p-6 shadow-lg flex flex-col gap-4 relative ${a}`,onClick:l},!r&&J__namespace.default.createElement("button",{onClick:t,className:"absolute top-4 right-4",type:"button"},J__namespace.default.createElement(lucideReact.X,{className:"h-6 w-6"})),o)),s)};var xm=()=>{let{isMobile:e}=Ne(),{isDownloadModalOpen:t,closeDownloadModal:o}=Z1(),{title:r,subtitle:n,button:a}=bm(),s=J__namespace.default.createElement("div",{className:"flex flex-col gap-4"},J__namespace.default.createElement("div",{className:"flex justify-center mb-4 w-[12.6rem] h-[12.6rem] mx-auto"},J__namespace.default.createElement(hM,null)),J__namespace.default.createElement("h2",{className:"text-[20px] font-bold text-gray-900 mb-2"},r),J__namespace.default.createElement("p",{className:"text-[#050910] text-[14px] mb-6"},n),J__namespace.default.createElement(le,{className:"w-full h-[48px] bg-primary hover:bg-primary/80 text-white text-[14px] font-bold rounded-[10px] py-2 border-0 outline-none flex items-center justify-center gap-2",onClick:gM},a,J__namespace.default.createElement(fM,{fontSize:24})));return e?J__namespace.default.createElement(vM,{isOpen:t,onClose:o,closeOnClickOutside:true,className:"text-center"},s):J__namespace.default.createElement(qe,{isOpen:t,onClose:o,closeOnClickOutside:true,disableFullScreen:true,hideCloseButton:false,className:"max-w-[327px] max-h-[512px] rounded-2xl bg-white p-6 shadow-lg text-center"},s)};var NV=()=>{let{openDownloadModal:e}=Z1(),{trigger:t}=bm();return J__namespace.default.createElement(le,{onClick:e,variant:"outline",className:"w-fit"},t)};var r8="mirantes_download_banner_last_shown",bc="mirantes_download_banner_count",wm="mirantes_download_banner_session_shown",n8=(e={})=>{let{maxShows:t=5,initialDelayMs:o=5e3,mobileOnly:r=true}=e,{openDownloadModal:n,isDownloadModalOpen:a}=Z1(),[s,i]=J.useState(false),l=()=>typeof window=="undefined"?false:window.innerWidth<=768||/Android|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),d=()=>!(typeof window=="undefined"||r&&!l()||sessionStorage.getItem(wm)==="true"||parseInt(sessionStorage.getItem(bc)||"0")>=t),c=()=>{if(typeof window=="undefined")return;let g=new Date().toISOString(),m=parseInt(sessionStorage.getItem(bc)||"0");sessionStorage.setItem(r8,g),sessionStorage.setItem(bc,(m+1).toString()),sessionStorage.setItem(wm,"true");},p=()=>{d()&&(i(true),setTimeout(()=>{n(),c(),i(false);},o));},f=()=>{typeof window!="undefined"&&(sessionStorage.removeItem(r8),sessionStorage.removeItem(bc),sessionStorage.removeItem(wm));},u=()=>{if(typeof window=="undefined")return {lastShown:null,showsCount:0,remainingShows:t,canShow:false,shownInCurrentSession:false};let g=sessionStorage.getItem(r8),m=parseInt(sessionStorage.getItem(bc)||"0"),v=sessionStorage.getItem(wm)==="true";return {lastShown:g?new Date(g):null,showsCount:m,remainingShows:Math.max(0,t-m),canShow:d(),shownInCurrentSession:v}};return J.useEffect(()=>{let g=setTimeout(()=>{p();},1e3);return ()=>clearTimeout(g)},[]),{shouldShow:s,showBanner:p,resetBannerData:f,getBannerStats:u,canShow:d(),isMobile:l()}};var kV=({maxShows:e=5,initialDelayMs:t=3e4,mobileOnly:o=true,enabled:r=true})=>{let{canShow:n}=n8({maxShows:e,initialDelayMs:t,mobileOnly:o});return !r||!n?J__namespace.default.createElement(xm,null):J__namespace.default.createElement(xm,null)};function TV(e){let{fontSize:t="20px"}=e;return J__namespace.createElement("svg",y({width:t,height:t,viewBox:"0 0 20 21",fill:"none"},e),J__namespace.createElement("path",{opacity:.4,d:"M1.667 9.732c.042 1.949.158 5.281.175 5.649.06.785.36 1.58.828 2.14.652.785 1.454 1.136 2.574 1.136 1.546.009 3.251.009 4.907.009 1.663 0 3.276 0 4.639-.009 1.103 0 1.93-.36 2.574-1.137.468-.56.769-1.362.811-2.14.017-.309.1-3.926.15-5.648H1.667z",fill:"#687588"}),J__namespace.createElement("path",{d:"M9.371 13.32v1.078a.625.625 0 001.25 0V13.32a.625.625 0 00-1.25 0z",fill:"#687588"}),J__namespace.createElement("path",{d:"M11.072 2.167c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174v2.889c0 .21-.106.406-.28.521-1.718 1.138-3.758 1.895-5.898 2.19a.625.625 0 01-.692-.465A1.504 1.504 0 009.992 11.5c-.701 0-1.297.454-1.482 1.13a.626.626 0 01-.69.456c-2.125-.297-4.157-1.051-5.872-2.184a.624.624 0 01-.281-.521V7.49a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 3.417c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#687588"}))}var DV=J__namespace.memo(TV),bM=DV;var xM=zustand.create(e=>({isOpen:false,openModal:()=>e({isOpen:true}),closeModal:()=>e({isOpen:false})}));function FV({onClick:e}){let{openModal:t}=xM(),{locale:o}=M();return J__namespace.default.createElement(re,{onClick:r=>{t(),e==null||e(r);},leftElement:J__namespace.default.createElement(bM,null),className:"text-gray-600 hover:opacity-90 h-auto !p-0 hover:bg-transparent",label:Je(o,"explore.oportunities.jobs")})}var n0=({rating:e})=>J__namespace.default.createElement("div",{className:"flex gap-[2px] my-1"},Array.from({length:5}).map((t,o)=>{let r=o+1,n=e>=r,a=!n&&e>=r-.5,s="M9.14692 0.511345L11.0023 4.23991C11.139 4.51004 11.3999 4.69764 11.7008 4.73933L15.8684 5.3463C16.1117 5.38049 16.3326 5.50889 16.4818 5.70482C16.6294 5.89825 16.6927 6.14338 16.6569 6.38433C16.6277 6.58443 16.5335 6.76953 16.3893 6.91127L13.3695 9.83859C13.1486 10.0429 13.0486 10.3455 13.1019 10.6415L13.8454 14.7569C13.9246 15.2538 13.5954 15.7224 13.1019 15.8166C12.8986 15.8491 12.6902 15.815 12.5068 15.7216L8.78934 13.7848C8.51345 13.6455 8.18755 13.6455 7.91165 13.7848L4.19419 15.7216C3.73742 15.9642 3.17147 15.7991 2.91725 15.3489C2.82306 15.1696 2.78972 14.9654 2.82056 14.7661L3.56405 10.6498C3.6174 10.3547 3.51654 10.0504 3.2965 9.84609L0.276681 6.92044C-0.0825632 6.57359 -0.0933988 6.00247 0.252509 5.64312C0.26001 5.63562 0.268345 5.62728 0.276681 5.61894C0.420045 5.47303 0.608418 5.38049 0.811795 5.35631L4.97936 4.7485C5.27942 4.70598 5.54031 4.52005 5.67784 4.24825L7.46656 0.511345C7.62576 0.191182 7.95583 -0.00808573 8.31424 0.000251838H8.42593C8.73683 0.0377709 9.00772 0.230369 9.14692 0.511345";return a?J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("defs",null,J__namespace.default.createElement("linearGradient",{id:`half-star-${o}`},J__namespace.default.createElement("stop",{offset:"50%",stopColor:"#EC991C"}),J__namespace.default.createElement("stop",{offset:"50%",stopColor:"rgba(236,153,28,0.3)"}))),J__namespace.default.createElement("path",{d:s,fill:`url(#half-star-${o})`})):J__namespace.default.createElement("svg",{key:o,className:"w-5 h-5",viewBox:"0 0 17 16",xmlns:"http://www.w3.org/2000/svg"},J__namespace.default.createElement("path",{d:s,fill:n?"#EC991C":"rgba(236,153,28,0.3)"}))}));var xc=(e=0)=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:e.toString(),CM=e=>{let t=Math.floor((new Date().getTime()-new Date(e).getTime())/1e3);if(t<60)return `${t}s`;let o=Math.floor(t/60);if(o<60)return `${o}m`;let r=Math.floor(o/60);if(r<24)return `${r}h`;let n=Math.floor(r/24);if(n<7)return `${n}D`;let a=Math.floor(n/7);if(a<4)return `${a}W`;let s=Math.floor(n/30);return s<12?`${s}M`:`${Math.floor(n/365)}Y`};var MM=vf.gql`
994
994
  query GET_RATING_STATS($userId: String, $pageId: String, $communityId: String) {
995
995
  getRatingStats(userId: $userId, pageId: $pageId, communityId: $communityId) {
996
996
  average
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mirantes-micro/foundation-design-system",
3
3
  "description": "A scalable and customizable design system package featuring a collection of reusable React components, utility functions, and context providers. Built to enforce visual and functional consistency across applications, this package offers accessible, themeable UI elements, shared logic through utility helpers, and context-based providers for managing global state such as themes, modals, and user sessions.",
4
- "version": "1.2.183",
4
+ "version": "1.2.184",
5
5
  "license": "MIT",
6
6
  "author": {
7
7
  "name": "Mirantes Frontend team"