@mirantes-micro/foundation-design-system 1.2.172 → 1.2.174
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
absolute inset-0 flex items-center justify-center
|
|
134
134
|
text-white text-[12px] font-bold
|
|
135
135
|
${a?"opacity-0":"opacity-100"}
|
|
136
|
-
`},Od(e!=null?e:"")))}function mt(e=""){var o;let t=(o=e==null?void 0:e.trim())==null?void 0:o.split(/\s+/);return t.length===1?t[0]:`${t[0]} ${t[t.length-1]}`}var j9=()=>{var r,n;let{user:e,locale:t}=P(),o=`/profile/${t}`;return Y__namespace.default.createElement("a",{href:o,className:"w-full bg-white p-4 lg:rounded-lg block","aria-label":"Ir para o perfil",onClick:a=>{a.preventDefault(),Ae(),window.location.href=o;}},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-4 w-full max-w-[220px] flex-shrink"},Y__namespace.default.createElement(ie,{name:e==null?void 0:e.name,src:e==null?void 0:e.avatar,className:"w-12 h-12 cursor-pointer"}),Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2 cursor-pointer w-full flex-shrink"},Y__namespace.default.createElement("div",{className:"flex flex-col items-start line-clamp-2 flex-shrink"},Y__namespace.default.createElement("span",{className:"w-full text-[14px] font-bold text-[#050910] line-clamp-1 flex-shrink truncate"},mt((r=e==null?void 0:e.name)!=null?r:"")),e!=null&&e.headline?Y__namespace.default.createElement("span",{className:"w-full text-[12px] text-gray-shade8 line-clamp-1 flex-shrink truncate"},Rt((n=e==null?void 0:e.headline)!=null?n:"",30)):null))))};function N4(){let{isMobile:e}=Se();return Y__namespace.default.createElement("div",{className:"lg:flex-1 flex gap-y-2 lg:gap-y-4 flex-col lg:max-w-[22.813rem]"},Y__namespace.default.createElement(j9,null),e&&Y__namespace.default.createElement(G9,null),Y__namespace.default.createElement(k9,null),Y__namespace.default.createElement(z9,null),Y__namespace.default.createElement(D9,null),Y__namespace.default.createElement(H9,null))}var q9=()=>Y__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Y__namespace.createElement("path",{fill:"#111827",d:"M12.012 14.83c-1.605 0-2.903-1.25-2.903-2.82s1.298-2.83 2.903-2.83 2.871 1.26 2.871 2.83-1.267 2.82-2.871 2.82"}),Y__namespace.createElement("path",{fill:"#111827",d:"M21.23 14.37c-.194-.3-.47-.6-.828-.79-.286-.14-.47-.37-.633-.64-.521-.86-.215-1.99.654-2.5a2.027 2.027 0 0 0 .756-2.83l-.685-1.18a2.11 2.11 0 0 0-2.871-.76c-.9.48-2.055.16-2.576-.69-.163-.28-.255-.58-.235-.88.03-.39-.092-.76-.276-1.06A2.15 2.15 0 0 0 12.717 2h-1.44c-.747.02-1.431.42-1.81 1.04-.194.3-.306.67-.286 1.06.02.3-.071.6-.235.88-.521.85-1.676 1.17-2.565.69a2.124 2.124 0 0 0-2.882.76l-.685 1.18c-.582.99-.255 2.26.757 2.83.868.51 1.175 1.64.664 2.5-.174.27-.358.5-.644.64-.347.19-.654.49-.817.79-.379.62-.358 1.4.02 2.05l.705 1.2a2.13 2.13 0 0 0 1.82 1.04c.347 0 .755-.1 1.083-.3.255-.17.562-.23.899-.23 1.012 0 1.86.83 1.88 1.82 0 1.15.94 2.05 2.126 2.05h1.39c1.175 0 2.115-.9 2.115-2.05.03-.99.88-1.82 1.89-1.82.328 0 .634.06.9.23.327.2.726.3 1.084.3.725 0 1.43-.4 1.808-1.04l.716-1.2c.368-.67.398-1.43.02-2.05",opacity:"0.4"}));var W9=()=>Y__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Y__namespace.createElement("path",{fill:"#E03137",d:"M2 6.447C2 3.996 4.03 2 6.525 2h4.96C13.976 2 16 3.99 16 6.437v11.116C16 20.005 13.97 22 11.474 22H6.515C4.025 22 2 20.01 2 17.563V6.447",opacity:"0.4"}),Y__namespace.createElement("path",{fill:"#E03137",d:"m21.777 11.454-2.846-2.909a.736.736 0 0 0-1.06.002.785.785 0 0 0 .002 1.09l1.56 1.592H9.546a.76.76 0 0 0-.75.77c0 .426.336.77.75.77h9.885l-1.56 1.593a.785.785 0 0 0-.001 1.09.74.74 0 0 0 .532.226.74.74 0 0 0 .529-.225l2.845-2.908a.783.783 0 0 0 0-1.09"}));function Q9(e,t){let o=e==="dev";return {domain:o?"localhost":t,secure:!o,sameSite:"lax",path:"/"}}var OI="mirantes-logout",G6=null;function K9(){return !G6&&typeof window!="undefined"&&(G6=new BroadcastChannel(OI)),G6}function Z9(e){var t;(t=K9())==null||t.addEventListener("message",o=>{var r;((r=o.data)==null?void 0:r.type)==="LOGOUT"&&e();});}function Y9(){var e;(e=K9())==null||e.close();}function J9(e,t){[void 0,t.domain].forEach(r=>{cookiesNext.deleteCookie(e,L(y({},t),{domain:r}));});}var GI=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function U6(e,t={}){let{broadcast:o=true,reload:r=true,redirectUrl:n}=t;GI.forEach(a=>J9(a,e)),typeof window!="undefined"&&(localStorage.clear(),sessionStorage.clear()),o&&tc(),typeof window!="undefined"&&(n?window.location.href=n:r&&window.location.reload());}function k4(){let{environment:e,mirantesDomain:t}=P(),o=Y.useMemo(()=>Q9(e!=null?e:"",t),[e,t]);return Y.useEffect(()=>(Z9(()=>{U6(o,{broadcast:false,reload:true});}),()=>Y9()),[o]),{handleLogout:Y.useCallback(n=>{U6(o,n);},[o])}}function T4({onClose:e}){let{locale:t}=P(),{handleLogout:o}=k4(),[r,n]=Y.useState(false);Y.useEffect(()=>{n(true);let i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=i,n(false);}},[]);let a=`/settings/${t}`,s=Y__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3},className:"w-full fixed z-[10000] top-0 flex left-0 min-h-[100dvh] bg-[#F1F5F9]"},Y__namespace.default.createElement("div",{className:"w-full flex flex-col gap-y-2 h-[100dvh] pb-6 relative overflow-y-auto"},Y__namespace.default.createElement("div",{className:"w-full p-6 flex items-center sticky top-0 z-[10001] bg-[#F1F5F9] justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center justify-start gap-x-2"},Y__namespace.default.createElement(lucideReact.ChevronLeftIcon,{className:"w-5 h-5",onClick:e}),Y__namespace.default.createElement("h4",{className:"text-body-lg font-bold"},Qe(t,"explore.card.title"))),Y__namespace.default.createElement("button",{className:"!p-0",onClick:e},Y__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"}))),Y__namespace.default.createElement(N4,null),Y__namespace.default.createElement("div",{className:"w-full bg-white p-4 flex flex-col gap-y-4"},Y__namespace.default.createElement("a",{href:a,onClick:i=>{i.preventDefault(),window.location.href=a;},className:"flex items-center w-full justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement(q9,null),Y__namespace.default.createElement("span",{className:"text-body-md font-medium"},Qe(t,"explore.settings.title"))),Y__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})),Y__namespace.default.createElement("div",{className:"bg-border h-[1px] w-full"}),Y__namespace.default.createElement("div",{role:"button",onClick:()=>o({reload:true}),className:"flex items-center w-full justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement(W9,null),Y__namespace.default.createElement("span",{className:"text-body-md font-medium text-red-shade6"},Qe(t,"explore.logout.title"))),Y__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})))));return r?jq.createPortal(s,document.body):null}var _6=r=>{var n=r,{size:e=20,color:t="white"}=n,o=Q(n,["size","color"]);return Y__namespace.createElement("svg",y({width:e,height:e*.75,viewBox:"0 0 20 15",fill:"none"},o),Y__namespace.createElement("path",{opacity:"0.4",d:"M19.3309 2.44275C18.9119 2.17879 18.3969 2.15544 17.9579 2.37879L16.4759 3.12701C15.9279 3.40316 15.5879 3.96153 15.5879 4.58285V10.4164C15.5879 11.0377 15.9279 11.595 16.4759 11.8732L17.9569 12.6204C18.1579 12.724 18.3729 12.7737 18.5879 12.7737C18.8459 12.7737 19.1019 12.7006 19.3309 12.5575C19.7499 12.2945 19.9999 11.8387 19.9999 11.3392V3.66204C19.9999 3.16255 19.7499 2.70671 19.3309 2.44275Z",fill:t}),Y__namespace.createElement("path",{d:"M9.9051 15H4.11304C1.69102 15 0 13.3299 0 10.9391V4.06091C0 1.66904 1.69102 0 4.11304 0H9.9051C12.3271 0 14.0181 1.66904 14.0181 4.06091V10.9391C14.0181 13.3299 12.3271 15 9.9051 15Z",fill:t}))};function $9({onCreatePost:e,onCreateReel:t,onCreateJob:o}){let {locale:r}=P(),[n,a]=Y.useState(false),s=Y.useRef(null),i=()=>{console.log("Toggle clicked, current isOpen:",n),a(!n);},l=()=>{console.log("Closing speed dial"),a(false);};[{id:"post",icon:Y__namespace.default.createElement(P4,{color:"#fff"}),label:"Criar Post",href:`/create/post/${r}`},{id:"reel",icon:Y__namespace.default.createElement(_6,null),label:"Criar Reel",href:`/create/reel/${r}`},{id:"job",icon:Y__namespace.default.createElement(l1,{color:"#fff"}),label:"Criar Vaga",href:`/create/job/${r}`}];return Y__namespace.default.createElement("div",{ref:s,className:"!absolute"},Y__namespace.default.createElement(react.AnimatePresence,null,n&&Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:-50,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{e==null||e(),l();},className:"!absolute w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(Ri,{color:"#fff",fontSize:18})),Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,y:0},animate:{opacity:1,scale:1,y:-60},exit:{opacity:0,scale:0,y:0},transition:{duration:.2,delay:.1,type:"spring",stiffness:100,damping:15},onClick:()=>{t==null||t(),l();},className:"!absolute !-top-[90px] !left-1/2 !-translate-x-1/2 w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(_6,{size:18,color:"#fff"})),Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:60,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{o==null||o(),l();},className:"!absolute w-9 h-9 bg-primary text-white rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(l1,{color:"#fff",fontSize:18})))),Y__namespace.default.createElement(react.motion.button,{onClick:i,className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center "},Y__namespace.default.createElement("div",{className:"w-10 h-10 flex rounded-lg items-center justify-center"},Y__namespace.default.createElement(Ri,{color:"#fff"}))))}function $I(e){return Y__namespace.createElement("svg",y({width:"20px",height:"20px",viewBox:"0 0 21 20",fill:"none"},e),Y__namespace.createElement("path",{opacity:.4,d:"M1.667 9.232c.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:"#737373"}),Y__namespace.createElement("path",{d:"M9.371 12.82v1.078a.625.625 0 001.25 0V12.82a.625.625 0 00-1.25 0z",fill:"#737373"}),Y__namespace.createElement("path",{d:"M11.072 1.667c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174V9.88c0 .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 11c-.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-.521V6.99a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 2.917c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#737373"}))}var RI=Y__namespace.memo($I),R9=RI;var V6=zustand.create(e=>({isCreatePostOpen:false,openCreatePost:()=>e({isCreatePostOpen:true}),closeCreatePost:()=>e({isCreatePostOpen:false}),toggleCreatePost:()=>e(t=>({isCreatePostOpen:!t.isCreatePostOpen}))}));var j6=zustand.create(e=>({isCreateReelsOpen:false,openCreateReels:()=>e({isCreateReelsOpen:true}),closeCreateReels:()=>e({isCreateReelsOpen:false}),toggleCreateReels:()=>e(t=>({isCreateReelsOpen:!t.isCreateReelsOpen}))}));var po=zustand.create((e,t)=>({currentAssets:[],assetsToDelete:[],setCurrentAssets:o=>{e({currentAssets:o});},isCreatingThePost:false,content:"",hashtags:void 0,setHashtags:o=>e({hashtags:o}),mentions:void 0,setMentions:o=>e({mentions:o}),mentionedUsers:void 0,setMentionedUsers:o=>e({mentionedUsers:o}),isUploading:false,selectedFiles:[],uploadedMedia:[],uploadProgress:0,setUploadProgress:o=>e({uploadProgress:o}),isProcessingPost:false,setIsProcessingPost:o=>e({isProcessingPost:o}),progressText:"",setProgressText:o=>e({progressText:o}),setContent:o=>e({content:o}),handleMediaUpload:(o,r=false)=>{o&&(e({isUploading:true}),setTimeout(()=>{r||e(a=>({selectedFiles:[...a.selectedFiles,...Array.from(o)]}));let n=Array.from(o).map(a=>URL.createObjectURL(a));e(a=>({uploadedMedia:[...a.uploadedMedia,...n],isUploading:false}));},1500));},removeMedia:o=>{e(r=>({selectedFiles:r.selectedFiles.filter((n,a)=>a!==o)})),e(r=>({uploadedMedia:r.uploadedMedia.filter((n,a)=>a!==o)})),e(r=>{let n=r.currentAssets[o];return {currentAssets:r.currentAssets.filter((a,s)=>s!==o),assetsToDelete:[...r.assetsToDelete,n]}});},resetForm:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0,uploadProgress:0,isProcessingPost:false,progressText:""}),resetFormContent:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0}),get isValid(){return t().content.trim().length>0||t().uploadedMedia.length>0},setIsCreatingThePost:o=>e({isCreatingThePost:o})}));var Bo=zustand.create(e=>({isOpen:false,post:void 0,setPost:(t=void 0)=>{e({post:t});},operation:"create",setOperation:(t="create")=>{e({operation:t});},postType:null,initialStep:null,setInitialStep:(t=null)=>{e({initialStep:t});},openModal:(t="text",o=null)=>{e({isOpen:true,postType:t,initialStep:o,operation:"create"}),document.body.style.overflow="hidden";},closeModal:(t=false)=>{e({isOpen:false,postType:null,post:void 0,operation:"create",initialStep:null}),t||(po.getState().resetForm(),po.getState().setIsCreatingThePost(false)),document.body.style.overflow="auto";}}));function F4({onCreatePost:e,onCreateReel:t,onCreateJob:o,onJobsClick:r}){let {user:n,locale:a}=P(),[s,i]=ia("mobile-explore-open",false),l=window.location.pathname;l.split("/")[3];v4({filter:{name:"",userId:n==null?void 0:n.id},perPage:3,sort:"createdAt",sortDir:"desc"});let {Notification:m}=P(),{openJob:u,isJobOpen:g}=Gn(),{openCreatePost:f}=V6(),{openCreateReels:v}=j6(),h=Y.useRef(false),b=Y.useRef(g),[x,w]=usehooks.useToggle(false),{openModal:C}=Bo(),M=n==null?void 0:n.isActive,T=o||u,N=(A,D)=>{if(!M){w(true);return}C(A,D);};return Y.useEffect(()=>{if(b.current&&!g){h.current=true;let A=setTimeout(()=>{h.current=false;},300);return ()=>clearTimeout(A)}b.current=g;},[g]),Y.useEffect(()=>{let A=()=>{i(true);};return window.addEventListener("openMobileExplore",A),()=>{window.removeEventListener("openMobileExplore",A);}},[]),Y.useEffect(()=>{let A=()=>{i(false);};return window.addEventListener("closeExploreCard",A),()=>{window.removeEventListener("closeExploreCard",A);}},[]),Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement("div",{className:"w-full z-[100] flex shadow-xl shadow-[#00000010] divide-border lg:hidden bg-white h-[60px] mx-4 rounded-full max-w-[350px] fixed bottom-16 left-[47%] -translate-x-1/2"},Y__namespace.default.createElement("div",{className:"flex-1 h-full rounded-l-2xl divide-border overflow-hidden flex"},Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(L6,{active:true,icon:v9,label:"Feed",href:`/feed/${a}`,isCurrent:l==null?void 0:l.includes("feed")})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(L6,{active:true,icon:Y__namespace.default.createElement(R9,null),label:"Jobs",href:`/jobs/${a}`,isCurrent:l==null?void 0:l.includes("jobs"),onClick:A=>{A.preventDefault(),A.stopPropagation(),!h.current&&(g||u());}})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement($9,{onCreatePost:()=>N("post"),onCreateReel:()=>N("reel"),onCreateJob:T})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement("div",{className:"bg-[#FFFFFF1A] w-8 h-8 rounded-full flex-none flex items-center justify-center"},m)),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(w9,null)))),Y__namespace.default.createElement(react.AnimatePresence,null,s&&Y__namespace.default.createElement(T4,{onClose:()=>i(false)})))}function sk(e){return e>=1e15?`${(e/1e15).toFixed(1)}Q`:e>=1e12?`${(e/1e12).toFixed(1)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function z4({label:e,value:t,onClick:o,isLoading:r=false}){return Y__namespace.default.createElement("div",{className:"flex items-center justify-between gap-x-4 cursor-pointer hover:opacity-80 transition-all group",onClick:o},Y__namespace.default.createElement("span",{className:"text-gray-shade8 text-sm font-normal truncate"},e),Y__namespace.default.createElement("div",{className:"relative flex justify-end min-w-[60px]"},r?Y__namespace.default.createElement("div",{className:"h-6 w-12 rounded-md bg-gray-200 animate-pulse"}):Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement("span",{className:"px-2 py-1 text-body-sm font-medium rounded-md bg-primary/10 text-primary text-right"},sk(t)),Y__namespace.default.createElement("span",{className:"absolute hidden group-hover:block -top-8 left-1/2 -translate-x-1/2 px-2 py-1 text-xs bg-gray-800 text-white rounded-md whitespace-nowrap z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},t.toLocaleString()))))}function tg(){return Y__namespace.default.createElement("div",{className:"rounded-2xl flex items-stretch gap-x-4 bg-white min-w-[347px] px-6 py-5"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement("div",{className:"w-14 h-14 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"flex flex-col gap-y-3"},Y__namespace.default.createElement("div",{className:"w-32 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}))),Y__namespace.default.createElement("div",{className:"w-[1px] bg-border"}),Y__namespace.default.createElement("div",{className:"flex flex-col gap-y-2"},Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"}))))}var Rs=zustand.create(e=>({activeTab:"contacts",setActiveTab:t=>e({activeTab:t})}));var og={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Follow","actions.unfollow":"Unfollow","actions.turn-into-contact":"Turn into contact","actions.remove-from-contacts":"Remove from contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"No contacts found","no-followers":"No followers found","no-following":"No following found"};var rg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Suivre","actions.unfollow":"Ne plus suivre","actions.turn-into-contact":"Passer en contact","actions.remove-from-contacts":"Supprimer des contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"Aucun contact trouv\xE9","no-followers":"Aucun follower trouv\xE9","no-following":"Aucun following trouv\xE9"};var ng={"tabs.contacts":"Contatos","tabs.followers":"Seguidores","tabs.following":"Seguindo","actions.follow":"Seguir","actions.unfollow":"Deixar de seguir","actions.turn-into-contact":"Tornar contato","actions.remove-from-contacts":"Remover dos contatos","actions.contacts":"Contato","actions.message":"Mensagem","no-contacts":"Nenhum contato encontrado","no-followers":"Nenhum seguidor encontrado","no-following":"Nenhum seguindo encontrado"};var lk={pt:y({},ng),en:y({},og),fr:y({},rg)};function xn(e,t){return lk[e][t]}var ag=`
|
|
136
|
+
`},Od(e!=null?e:"")))}function mt(e=""){var o;let t=(o=e==null?void 0:e.trim())==null?void 0:o.split(/\s+/);return t.length===1?t[0]:`${t[0]} ${t[t.length-1]}`}var j9=()=>{var r,n;let{user:e,locale:t}=P(),o=`/profile/${t}`;return Y__namespace.default.createElement("a",{href:o,className:"w-full bg-white p-4 lg:rounded-lg block","aria-label":"Ir para o perfil",onClick:a=>{a.preventDefault(),Ae(),window.location.href=o;}},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-4 w-full max-w-[220px] flex-shrink"},Y__namespace.default.createElement(ie,{name:e==null?void 0:e.name,src:e==null?void 0:e.avatar,className:"w-12 h-12 cursor-pointer"}),Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2 cursor-pointer w-full flex-shrink"},Y__namespace.default.createElement("div",{className:"flex flex-col items-start line-clamp-2 flex-shrink"},Y__namespace.default.createElement("span",{className:"w-full text-[14px] font-bold text-[#050910] line-clamp-1 flex-shrink truncate"},mt((r=e==null?void 0:e.name)!=null?r:"")),e!=null&&e.headline?Y__namespace.default.createElement("span",{className:"w-full text-[12px] text-gray-shade8 line-clamp-1 flex-shrink truncate"},Rt((n=e==null?void 0:e.headline)!=null?n:"",30)):null))))};function N4(){let{isMobile:e}=Se();return Y__namespace.default.createElement("div",{className:"lg:flex-1 flex gap-y-2 lg:gap-y-4 flex-col lg:max-w-[22.813rem]"},Y__namespace.default.createElement(j9,null),e&&Y__namespace.default.createElement(G9,null),Y__namespace.default.createElement(k9,null),Y__namespace.default.createElement(z9,null),Y__namespace.default.createElement(D9,null),Y__namespace.default.createElement(H9,null))}var q9=()=>Y__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Y__namespace.createElement("path",{fill:"#111827",d:"M12.012 14.83c-1.605 0-2.903-1.25-2.903-2.82s1.298-2.83 2.903-2.83 2.871 1.26 2.871 2.83-1.267 2.82-2.871 2.82"}),Y__namespace.createElement("path",{fill:"#111827",d:"M21.23 14.37c-.194-.3-.47-.6-.828-.79-.286-.14-.47-.37-.633-.64-.521-.86-.215-1.99.654-2.5a2.027 2.027 0 0 0 .756-2.83l-.685-1.18a2.11 2.11 0 0 0-2.871-.76c-.9.48-2.055.16-2.576-.69-.163-.28-.255-.58-.235-.88.03-.39-.092-.76-.276-1.06A2.15 2.15 0 0 0 12.717 2h-1.44c-.747.02-1.431.42-1.81 1.04-.194.3-.306.67-.286 1.06.02.3-.071.6-.235.88-.521.85-1.676 1.17-2.565.69a2.124 2.124 0 0 0-2.882.76l-.685 1.18c-.582.99-.255 2.26.757 2.83.868.51 1.175 1.64.664 2.5-.174.27-.358.5-.644.64-.347.19-.654.49-.817.79-.379.62-.358 1.4.02 2.05l.705 1.2a2.13 2.13 0 0 0 1.82 1.04c.347 0 .755-.1 1.083-.3.255-.17.562-.23.899-.23 1.012 0 1.86.83 1.88 1.82 0 1.15.94 2.05 2.126 2.05h1.39c1.175 0 2.115-.9 2.115-2.05.03-.99.88-1.82 1.89-1.82.328 0 .634.06.9.23.327.2.726.3 1.084.3.725 0 1.43-.4 1.808-1.04l.716-1.2c.368-.67.398-1.43.02-2.05",opacity:"0.4"}));var W9=()=>Y__namespace.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"none",viewBox:"0 0 24 24"},Y__namespace.createElement("path",{fill:"#E03137",d:"M2 6.447C2 3.996 4.03 2 6.525 2h4.96C13.976 2 16 3.99 16 6.437v11.116C16 20.005 13.97 22 11.474 22H6.515C4.025 22 2 20.01 2 17.563V6.447",opacity:"0.4"}),Y__namespace.createElement("path",{fill:"#E03137",d:"m21.777 11.454-2.846-2.909a.736.736 0 0 0-1.06.002.785.785 0 0 0 .002 1.09l1.56 1.592H9.546a.76.76 0 0 0-.75.77c0 .426.336.77.75.77h9.885l-1.56 1.593a.785.785 0 0 0-.001 1.09.74.74 0 0 0 .532.226.74.74 0 0 0 .529-.225l2.845-2.908a.783.783 0 0 0 0-1.09"}));function Q9(e,t){let o=e==="dev";return {domain:o?"localhost":t,secure:!o,sameSite:"lax",path:"/"}}var OI="mirantes-logout",G6=null;function K9(){return !G6&&typeof window!="undefined"&&(G6=new BroadcastChannel(OI)),G6}function Z9(e){var t;(t=K9())==null||t.addEventListener("message",o=>{var r;((r=o.data)==null?void 0:r.type)==="LOGOUT"&&e();});}function Y9(){var e;(e=K9())==null||e.close();}function J9(e,t){[void 0,t.domain].forEach(r=>{cookiesNext.deleteCookie(e,L(y({},t),{domain:r,path:"/",sameSite:"lax"}));});}var GI=["_accessToken","_refreshToken","_userData","_userId","_userSlug","_userStatus","_MIRAId","_loggedAt","_companyId","_isBackOffice","impersonate"];function U6(e,t={}){let{broadcast:o=true,reload:r=true,redirectUrl:n}=t;GI.forEach(a=>J9(a,e)),typeof window!="undefined"&&(localStorage.clear(),sessionStorage.clear()),o&&tc(),typeof window!="undefined"&&(n?window.location.href=n:r&&window.location.reload());}function k4(){let{environment:e,mirantesDomain:t}=P(),o=Y.useMemo(()=>Q9(e!=null?e:"",t),[e,t]);return Y.useEffect(()=>(Z9(()=>{U6(o,{broadcast:false,reload:true});}),()=>Y9()),[o]),{handleLogout:Y.useCallback(n=>{U6(o,n);},[o])}}function T4({onClose:e}){let{locale:t}=P(),{handleLogout:o}=k4(),[r,n]=Y.useState(false);Y.useEffect(()=>{n(true);let i=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=i,n(false);}},[]);let a=`/settings/${t}`,s=Y__namespace.default.createElement(react.motion.div,{initial:{opacity:0,x:100},animate:{opacity:1,x:0},exit:{opacity:0,x:100},transition:{duration:.3},className:"w-full fixed z-[10000] top-0 flex left-0 min-h-[100dvh] bg-[#F1F5F9]"},Y__namespace.default.createElement("div",{className:"w-full flex flex-col gap-y-2 h-[100dvh] pb-6 relative overflow-y-auto"},Y__namespace.default.createElement("div",{className:"w-full p-6 flex items-center sticky top-0 z-[10001] bg-[#F1F5F9] justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center justify-start gap-x-2"},Y__namespace.default.createElement(lucideReact.ChevronLeftIcon,{className:"w-5 h-5",onClick:e}),Y__namespace.default.createElement("h4",{className:"text-body-lg font-bold"},Qe(t,"explore.card.title"))),Y__namespace.default.createElement("button",{className:"!p-0",onClick:e},Y__namespace.default.createElement(lucideReact.X,{className:"w-5 h-5"}))),Y__namespace.default.createElement(N4,null),Y__namespace.default.createElement("div",{className:"w-full bg-white p-4 flex flex-col gap-y-4"},Y__namespace.default.createElement("a",{href:a,onClick:i=>{i.preventDefault(),window.location.href=a;},className:"flex items-center w-full justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement(q9,null),Y__namespace.default.createElement("span",{className:"text-body-md font-medium"},Qe(t,"explore.settings.title"))),Y__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})),Y__namespace.default.createElement("div",{className:"bg-border h-[1px] w-full"}),Y__namespace.default.createElement("div",{role:"button",onClick:()=>o({reload:true}),className:"flex items-center w-full justify-between"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement(W9,null),Y__namespace.default.createElement("span",{className:"text-body-md font-medium text-red-shade6"},Qe(t,"explore.logout.title"))),Y__namespace.default.createElement(lucideReact.ChevronRightIcon,{className:"w-5 h-5 text-gray-shade8"})))));return r?jq.createPortal(s,document.body):null}var _6=r=>{var n=r,{size:e=20,color:t="white"}=n,o=Q(n,["size","color"]);return Y__namespace.createElement("svg",y({width:e,height:e*.75,viewBox:"0 0 20 15",fill:"none"},o),Y__namespace.createElement("path",{opacity:"0.4",d:"M19.3309 2.44275C18.9119 2.17879 18.3969 2.15544 17.9579 2.37879L16.4759 3.12701C15.9279 3.40316 15.5879 3.96153 15.5879 4.58285V10.4164C15.5879 11.0377 15.9279 11.595 16.4759 11.8732L17.9569 12.6204C18.1579 12.724 18.3729 12.7737 18.5879 12.7737C18.8459 12.7737 19.1019 12.7006 19.3309 12.5575C19.7499 12.2945 19.9999 11.8387 19.9999 11.3392V3.66204C19.9999 3.16255 19.7499 2.70671 19.3309 2.44275Z",fill:t}),Y__namespace.createElement("path",{d:"M9.9051 15H4.11304C1.69102 15 0 13.3299 0 10.9391V4.06091C0 1.66904 1.69102 0 4.11304 0H9.9051C12.3271 0 14.0181 1.66904 14.0181 4.06091V10.9391C14.0181 13.3299 12.3271 15 9.9051 15Z",fill:t}))};function $9({onCreatePost:e,onCreateReel:t,onCreateJob:o}){let {locale:r}=P(),[n,a]=Y.useState(false),s=Y.useRef(null),i=()=>{console.log("Toggle clicked, current isOpen:",n),a(!n);},l=()=>{console.log("Closing speed dial"),a(false);};[{id:"post",icon:Y__namespace.default.createElement(P4,{color:"#fff"}),label:"Criar Post",href:`/create/post/${r}`},{id:"reel",icon:Y__namespace.default.createElement(_6,null),label:"Criar Reel",href:`/create/reel/${r}`},{id:"job",icon:Y__namespace.default.createElement(l1,{color:"#fff"}),label:"Criar Vaga",href:`/create/job/${r}`}];return Y__namespace.default.createElement("div",{ref:s,className:"!absolute"},Y__namespace.default.createElement(react.AnimatePresence,null,n&&Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:-50,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{e==null||e(),l();},className:"!absolute w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(Ri,{color:"#fff",fontSize:18})),Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,y:0},animate:{opacity:1,scale:1,y:-60},exit:{opacity:0,scale:0,y:0},transition:{duration:.2,delay:.1,type:"spring",stiffness:100,damping:15},onClick:()=>{t==null||t(),l();},className:"!absolute !-top-[90px] !left-1/2 !-translate-x-1/2 w-9 h-9 bg-primary rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(_6,{size:18,color:"#fff"})),Y__namespace.default.createElement(react.motion.button,{initial:{opacity:0,scale:0,x:0,y:0},animate:{opacity:1,scale:1,x:60,y:-50},exit:{opacity:0,scale:0,x:0,y:0},transition:{duration:.2,delay:.01,type:"spring",stiffness:100,damping:15},onClick:()=>{o==null||o(),l();},className:"!absolute w-9 h-9 bg-primary text-white rounded-full flex items-center justify-center shadow-lg hover:scale-110 transition-transform z-10"},Y__namespace.default.createElement(l1,{color:"#fff",fontSize:18})))),Y__namespace.default.createElement(react.motion.button,{onClick:i,className:"w-12 h-12 bg-primary rounded-full flex items-center justify-center "},Y__namespace.default.createElement("div",{className:"w-10 h-10 flex rounded-lg items-center justify-center"},Y__namespace.default.createElement(Ri,{color:"#fff"}))))}function $I(e){return Y__namespace.createElement("svg",y({width:"20px",height:"20px",viewBox:"0 0 21 20",fill:"none"},e),Y__namespace.createElement("path",{opacity:.4,d:"M1.667 9.232c.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:"#737373"}),Y__namespace.createElement("path",{d:"M9.371 12.82v1.078a.625.625 0 001.25 0V12.82a.625.625 0 00-1.25 0z",fill:"#737373"}),Y__namespace.createElement("path",{d:"M11.072 1.667c1.25 0 2.276.94 2.433 2.15h1.647a3.177 3.177 0 013.173 3.174V9.88c0 .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 11c-.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-.521V6.99a3.18 3.18 0 013.18-3.174h1.64a2.46 2.46 0 012.433-2.15h2.152zM8.92 2.917c-.56 0-1.029.383-1.169.9h4.49c-.14-.517-.609-.9-1.169-.9H8.92z",fill:"#737373"}))}var RI=Y__namespace.memo($I),R9=RI;var V6=zustand.create(e=>({isCreatePostOpen:false,openCreatePost:()=>e({isCreatePostOpen:true}),closeCreatePost:()=>e({isCreatePostOpen:false}),toggleCreatePost:()=>e(t=>({isCreatePostOpen:!t.isCreatePostOpen}))}));var j6=zustand.create(e=>({isCreateReelsOpen:false,openCreateReels:()=>e({isCreateReelsOpen:true}),closeCreateReels:()=>e({isCreateReelsOpen:false}),toggleCreateReels:()=>e(t=>({isCreateReelsOpen:!t.isCreateReelsOpen}))}));var po=zustand.create((e,t)=>({currentAssets:[],assetsToDelete:[],setCurrentAssets:o=>{e({currentAssets:o});},isCreatingThePost:false,content:"",hashtags:void 0,setHashtags:o=>e({hashtags:o}),mentions:void 0,setMentions:o=>e({mentions:o}),mentionedUsers:void 0,setMentionedUsers:o=>e({mentionedUsers:o}),isUploading:false,selectedFiles:[],uploadedMedia:[],uploadProgress:0,setUploadProgress:o=>e({uploadProgress:o}),isProcessingPost:false,setIsProcessingPost:o=>e({isProcessingPost:o}),progressText:"",setProgressText:o=>e({progressText:o}),setContent:o=>e({content:o}),handleMediaUpload:(o,r=false)=>{o&&(e({isUploading:true}),setTimeout(()=>{r||e(a=>({selectedFiles:[...a.selectedFiles,...Array.from(o)]}));let n=Array.from(o).map(a=>URL.createObjectURL(a));e(a=>({uploadedMedia:[...a.uploadedMedia,...n],isUploading:false}));},1500));},removeMedia:o=>{e(r=>({selectedFiles:r.selectedFiles.filter((n,a)=>a!==o)})),e(r=>({uploadedMedia:r.uploadedMedia.filter((n,a)=>a!==o)})),e(r=>{let n=r.currentAssets[o];return {currentAssets:r.currentAssets.filter((a,s)=>s!==o),assetsToDelete:[...r.assetsToDelete,n]}});},resetForm:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0,uploadProgress:0,isProcessingPost:false,progressText:""}),resetFormContent:()=>e({content:"",uploadedMedia:[],isUploading:false,selectedFiles:[],currentAssets:[],assetsToDelete:[],mentionedUsers:void 0,hashtags:void 0}),get isValid(){return t().content.trim().length>0||t().uploadedMedia.length>0},setIsCreatingThePost:o=>e({isCreatingThePost:o})}));var Bo=zustand.create(e=>({isOpen:false,post:void 0,setPost:(t=void 0)=>{e({post:t});},operation:"create",setOperation:(t="create")=>{e({operation:t});},postType:null,initialStep:null,setInitialStep:(t=null)=>{e({initialStep:t});},openModal:(t="text",o=null)=>{e({isOpen:true,postType:t,initialStep:o,operation:"create"}),document.body.style.overflow="hidden";},closeModal:(t=false)=>{e({isOpen:false,postType:null,post:void 0,operation:"create",initialStep:null}),t||(po.getState().resetForm(),po.getState().setIsCreatingThePost(false)),document.body.style.overflow="auto";}}));function F4({onCreatePost:e,onCreateReel:t,onCreateJob:o,onJobsClick:r}){let {user:n,locale:a}=P(),[s,i]=ia("mobile-explore-open",false),l=window.location.pathname;l.split("/")[3];v4({filter:{name:"",userId:n==null?void 0:n.id},perPage:3,sort:"createdAt",sortDir:"desc"});let {Notification:m}=P(),{openJob:u,isJobOpen:g}=Gn(),{openCreatePost:f}=V6(),{openCreateReels:v}=j6(),h=Y.useRef(false),b=Y.useRef(g),[x,w]=usehooks.useToggle(false),{openModal:C}=Bo(),M=n==null?void 0:n.isActive,T=o||u,N=(A,D)=>{if(!M){w(true);return}C(A,D);};return Y.useEffect(()=>{if(b.current&&!g){h.current=true;let A=setTimeout(()=>{h.current=false;},300);return ()=>clearTimeout(A)}b.current=g;},[g]),Y.useEffect(()=>{let A=()=>{i(true);};return window.addEventListener("openMobileExplore",A),()=>{window.removeEventListener("openMobileExplore",A);}},[]),Y.useEffect(()=>{let A=()=>{i(false);};return window.addEventListener("closeExploreCard",A),()=>{window.removeEventListener("closeExploreCard",A);}},[]),Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement("div",{className:"w-full z-[100] flex shadow-xl shadow-[#00000010] divide-border lg:hidden bg-white h-[60px] mx-4 rounded-full max-w-[350px] fixed bottom-16 left-[47%] -translate-x-1/2"},Y__namespace.default.createElement("div",{className:"flex-1 h-full rounded-l-2xl divide-border overflow-hidden flex"},Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(L6,{active:true,icon:v9,label:"Feed",href:`/feed/${a}`,isCurrent:l==null?void 0:l.includes("feed")})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(L6,{active:true,icon:Y__namespace.default.createElement(R9,null),label:"Jobs",href:`/jobs/${a}`,isCurrent:l==null?void 0:l.includes("jobs"),onClick:A=>{A.preventDefault(),A.stopPropagation(),!h.current&&(g||u());}})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement($9,{onCreatePost:()=>N("post"),onCreateReel:()=>N("reel"),onCreateJob:T})),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement("div",{className:"bg-[#FFFFFF1A] w-8 h-8 rounded-full flex-none flex items-center justify-center"},m)),Y__namespace.default.createElement("div",{className:"flex-1 flex items-center justify-center"},Y__namespace.default.createElement(w9,null)))),Y__namespace.default.createElement(react.AnimatePresence,null,s&&Y__namespace.default.createElement(T4,{onClose:()=>i(false)})))}function sk(e){return e>=1e15?`${(e/1e15).toFixed(1)}Q`:e>=1e12?`${(e/1e12).toFixed(1)}T`:e>=1e9?`${(e/1e9).toFixed(1)}B`:e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:`${e}`}function z4({label:e,value:t,onClick:o,isLoading:r=false}){return Y__namespace.default.createElement("div",{className:"flex items-center justify-between gap-x-4 cursor-pointer hover:opacity-80 transition-all group",onClick:o},Y__namespace.default.createElement("span",{className:"text-gray-shade8 text-sm font-normal truncate"},e),Y__namespace.default.createElement("div",{className:"relative flex justify-end min-w-[60px]"},r?Y__namespace.default.createElement("div",{className:"h-6 w-12 rounded-md bg-gray-200 animate-pulse"}):Y__namespace.default.createElement(Y__namespace.default.Fragment,null,Y__namespace.default.createElement("span",{className:"px-2 py-1 text-body-sm font-medium rounded-md bg-primary/10 text-primary text-right"},sk(t)),Y__namespace.default.createElement("span",{className:"absolute hidden group-hover:block -top-8 left-1/2 -translate-x-1/2 px-2 py-1 text-xs bg-gray-800 text-white rounded-md whitespace-nowrap z-10 opacity-0 group-hover:opacity-100 transition-opacity duration-300"},t.toLocaleString()))))}function tg(){return Y__namespace.default.createElement("div",{className:"rounded-2xl flex items-stretch gap-x-4 bg-white min-w-[347px] px-6 py-5"},Y__namespace.default.createElement("div",{className:"flex items-center gap-x-2"},Y__namespace.default.createElement("div",{className:"w-14 h-14 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"flex flex-col gap-y-3"},Y__namespace.default.createElement("div",{className:"w-32 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}))),Y__namespace.default.createElement("div",{className:"w-[1px] bg-border"}),Y__namespace.default.createElement("div",{className:"flex flex-col gap-y-2"},Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"})),Y__namespace.default.createElement("div",{className:"w-full flex items-center gap-x-14 justify-between"},Y__namespace.default.createElement("div",{className:"w-20 h-2 rounded-full bg-gray-shade10 animate-pulse"}),Y__namespace.default.createElement("div",{className:"w-8 h-5 rounded-md bg-gray-shade10 animate-pulse"}))))}var Rs=zustand.create(e=>({activeTab:"contacts",setActiveTab:t=>e({activeTab:t})}));var og={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Follow","actions.unfollow":"Unfollow","actions.turn-into-contact":"Turn into contact","actions.remove-from-contacts":"Remove from contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"No contacts found","no-followers":"No followers found","no-following":"No following found"};var rg={"tabs.contacts":"Contacts","tabs.followers":"Followers","tabs.following":"Following","actions.follow":"Suivre","actions.unfollow":"Ne plus suivre","actions.turn-into-contact":"Passer en contact","actions.remove-from-contacts":"Supprimer des contacts","actions.contacts":"Contact","actions.message":"Message","no-contacts":"Aucun contact trouv\xE9","no-followers":"Aucun follower trouv\xE9","no-following":"Aucun following trouv\xE9"};var ng={"tabs.contacts":"Contatos","tabs.followers":"Seguidores","tabs.following":"Seguindo","actions.follow":"Seguir","actions.unfollow":"Deixar de seguir","actions.turn-into-contact":"Tornar contato","actions.remove-from-contacts":"Remover dos contatos","actions.contacts":"Contato","actions.message":"Mensagem","no-contacts":"Nenhum contato encontrado","no-followers":"Nenhum seguidor encontrado","no-following":"Nenhum seguindo encontrado"};var lk={pt:y({},ng),en:y({},og),fr:y({},rg)};function xn(e,t){return lk[e][t]}var ag=`
|
|
137
137
|
id
|
|
138
138
|
name
|
|
139
139
|
slug
|
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.
|
|
4
|
+
"version": "1.2.174",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Mirantes Frontend team"
|