1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1731],{33059:function(e,r,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/painel",function(){return i(96535)}])},95578:function(e,r,i){"use strict";i.d(r,{$G:function(){return s},fC:function(){return a},wz:function(){return d}});var o=i(93073),t=i(39828),n=i(56845);let s=async(e,r,i,n)=>{let s=(0,t.JU)(o.db,r,e.id);await (0,t.r7)(s,e).then(()=>{i()}).catch(e=>{n(e),console.log(e)})},a=async(e,r,i,n)=>{let s=(0,t.JU)(o.db,r,e.id);await (0,t.pl)(s,e).then(function(){i()}).catch(function(e){console.log(e),n()})},l=e=>{let r=(e,r)=>{let i=(0,n.iH)(o.tO,e).child(r);(0,n.oq)(i)},i=(0,n.iH)(o.tO,e);(0,n.aF)(i).then(e=>{e.items.forEach(e=>{r(i.fullPath,e.name)}),e.prefixes.forEach(e=>{l(e.fullPath)})}).catch(e=>{console.log(e)})},d=async(e,r,i,n)=>{let s=(0,t.JU)(o.db,r,e);await (0,t.oe)(s).then(function(){i(),l("".concat(r,"/").concat(e))}).catch(function(e){n(),console.error("Error removing document: ",e)})}},5311:function(e,r,i){"use strict";i.d(r,{O:function(){return o}});let o=(0,i(30218).eI)("https://rbrrgqjvlpxlfhjdtter.supabase.co","eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyb2xlIjoiYW5vbiIsImlhdCI6MTYxOTI3MjEyNywiZXhwIjoxOTM0ODQ4MTI3fQ.iz6ccvvxLDtA4Ev0fJ4rKOQnN367FgASeIy_7OoXOsE")},96535:function(e,r,i){"use strict";i.r(r),i.d(r,{default:function(){return D}});var o=i(85893),t=i(67294),n=i(15437),s=i(39828),a=i(93073),l=i(41664),d=i.n(l),x=i(35074),p=i(68527),c=i(94090),u=i(15193),h=i(34651),m=i(17233),g=i(5311),b=i(33208);i(67814),i(30653);var f=i(61120),j=i.n(f);i(33729);var S=i(74855),v=i(95578),z=i(22288);let y=n.ZP.div.withConfig({componentId:"sc-ac8ea472-0"})(["font-size:18px;font-weight:600;margin-right:10px;"]),w=n.ZP.div.withConfig({componentId:"sc-ac8ea472-1"})([""]),C=n.ZP.div.withConfig({componentId:"sc-ac8ea472-2"})(["font-size:12px;margin-bottom:5px;border-bottom:1px solid ",";padding-bottom:10px;"],e=>e.theme.colors.grey2);n.ZP.div.withConfig({componentId:"sc-ac8ea472-3"})(["display:inline-block;margin-right:5px;background:green;border-radius:50%;width:10px;height:10px;"]);let I=n.ZP.div.withConfig({componentId:"sc-ac8ea472-4"})(["display:flex;"]);var k=()=>{let[e,r]=(0,t.useState)([]),[i,n]=(0,t.useState)([]),[l,f]=(0,t.useState)([]),[k,R]=(0,t.useState)([]),[A,D]=(0,t.useState)([]),[O,E]=(0,t.useState)([]),[N,T]=(0,t.useState)([]),[L,P]=(0,t.useState)([]),[J,W]=(0,t.useState)([]),[B,U]=(0,t.useState)([]),[F,M]=(0,t.useState)([]),[V,_]=(0,t.useState)([]),[X,G]=(0,t.useState)([]),[Z,$]=(0,t.useState)(!1),[Q,q]=(0,t.useState)(!1),[Y,H]=(0,t.useState)([]),[K,ee]=(0,t.useState)(null),[er,ei]=(0,t.useState)(null),[eo,et]=(0,t.useState)(!1),en=(0,b.o)(e=>e.getAllReviews);(0,b.o)(e=>e.allReviews);let es=(0,b.o)(e=>e.userData);(0,t.useRef)(null);let ea=(0,x.pm)();(0,t.useEffect)(()=>{if(es&&Object.keys(es).length>0){let e=(0,s.JU)(a.db,"config","menu-visibility"),r=(0,s.cf)(e,e=>{e.exists()?ei(e.data()):ei({}),et(!0)},e=>{console.error("Error fetching menu config:",e),ei({}),et(!0)});return()=>r()}},[es]);let el=e=>{if(!es||0===Object.keys(es).length||!eo||null===er)return!1;if(0===Object.keys(er).length||!er[e])return!0;let r=er[e],i=null==es?void 0:es.role;return"admin"===i||"editor"===i?!1!==r[i]:(null==es?void 0:es.tipo)&&Array.isArray(es.tipo)&&es.tipo.length>0?es.tipo.some(e=>!1!==r[e]):(null==es||!es.tipo)&&("corretor"===i||"proprietario"===i)&&!1!==r[i]};(0,t.useEffect)(()=>{(async()=>{en();let e=(0,s.hJ)(a.db,"festas"),r=(0,s.IO)(e),i=[];(await (0,s.PL)(r)).forEach(e=>{i.push(e.data())}),n(i);let o=(0,s.hJ)(a.db,"empregos"),t=(0,s.IO)(o),l=[];(await (0,s.PL)(t)).forEach(e=>{l.push(e.data())}),f(l);let d=(0,s.hJ)(a.db,"artigos"),x=(0,s.IO)(d),p=[];(await (0,s.PL)(x)).forEach(e=>{p.push(e.data())}),R(p);let c=(0,s.hJ)(a.db,"moradias"),u=(0,s.IO)(c),h=[];(await (0,s.PL)(u)).forEach(e=>{h.push(e.data())}),D(h);let m=(0,s.hJ)(a.db,"encontre"),b=(0,s.IO)(m),j=[];(await (0,s.PL)(b)).forEach(e=>{j.push(e.data())}),E(j);let S=(0,s.hJ)(a.db,"republicas"),v=(0,s.IO)(S),z=[];(await (0,s.PL)(v)).forEach(e=>{z.push(e.data())}),T(z);let y=(0,s.hJ)(a.db,"vistorias"),w=(0,s.IO)(y),C=[];
1(await (0,s.PL)(w)).forEach(e=>{C.push(e.data())}),W(C);let I=(0,s.hJ)(a.db,"log-contato"),k=(0,s.IO)(I),A=[];(await (0,s.PL)(k)).forEach(e=>{A.push(e.data())}),U(A);let O=(0,s.hJ)(a.db,"lista-espera"),N=(0,s.IO)(O),L=[];(await (0,s.PL)(N)).forEach(e=>{L.push(e.data())}),M(L);let J=(0,s.hJ)(a.db,"mensagens"),B=(0,s.IO)(J),F=[];(await (0,s.PL)(B)).forEach(e=>{F.push(e.data())}),_(F);let V=(0,s.IO)((0,s.B$)(a.db,"unidades")),X=await (0,s.PL)(V),Z=[];X.forEach(e=>{Z.push({...e.data(),docId:e.ref.parent.parent.id})}),P(Z);try{let{data:e,error:r}=await g.O.from("frutas").select("*, tipos(id, url, srcimage)").eq("publicado",!1);r&&console.log(r),G(e)}catch(e){console.log(e)}})(),ed()},[]);let ed=async()=>{try{let e=(0,s.hJ)(a.db,"artigos"),r=(0,s.IO)(e,(0,s.Xo)("diahorario.seconds"),(0,s.b9)(3));K&&(r=(0,s.IO)(r,(0,s.TQ)(K)));let i=await (0,s.PL)(r),o=i.docs.map(e=>({id:e.id,...e.data()}));H(e=>[...e,...o]),ee(i.docs[i.docs.length-1])}catch(e){console.error("Error fetching articles:",e)}};function ex(e){let r=new Date(e);return(new Date-r)/864e5<=5}let ep=async e=>{(0,v.$G)({...e,lastStoryPost:{timestamp:Date.now(),dateString:new Date().toLocaleDateString("pt-BR")}},"artigos",ec,eu)},ec=()=>{$(!1),setIsCreating(!1),ea({title:"Item Atualizado",position:"top",description:"Informa\xe7\xf5es Salvas",status:"success",duration:2500,isClosable:!0})},eu=e=>{$(!1),console.log(e),ea({title:"Aconteceu um erro :(",position:"top",description:JSON.stringify(e),status:"error",duration:2500,isClosable:!0})},eh=e=>(0,z.Z)(new Date,new Date(e));return(0,o.jsxs)(p.xu,{p:"10px",children:[(0,o.jsx)(p.xu,{mb:"20px",textTransform:"uppercase",fontSize:"13px",fontWeight:"bold",children:"Painel Morando em Bar\xe3o"}),(0,o.jsx)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:(0,o.jsx)(c.UQ,{allowMultiple:!0,allowToggle:!0,children:(0,o.jsxs)(c.Qd,{children:[(0,o.jsxs)(c.KF,{children:[(0,o.jsx)(p.xu,{as:"span",flex:"1",textAlign:"left",children:(0,o.jsx)(p.xu,{fontSize:"13px",fontWeight:"bold",mb:"10px",children:"Abrir stories do dia"})}),(0,o.jsx)(c.XE,{})]}),(0,o.jsxs)(c.Hk,{pb:4,children:[(0,o.jsx)(p.rj,{templateColumns:["1fr","1fr","1fr 1fr 1fr","1fr 1fr 1fr"],gridGap:"10px",mb:"10px",children:Y.filter(e=>!0===e.published).filter(e=>{var r;return!e.lastStoryPost||eh(null===(r=e.lastStoryPost)||void 0===r?void 0:r.timestamp)>300}).map(e=>{var r,i,t;return(0,o.jsxs)(p.xu,{border:"1px solid grey",p:"5px",borderRadius:"5px",children:[(0,o.jsxs)(p.xu,{id:"article-".concat(e.id),position:"relative",mb:"5px",children:[(0,o.jsxs)(p.xu,{position:"absolute",top:"15px",left:"10px",children:[(0,o.jsx)(p.xu,{maxW:"250px",mb:"50px",bg:"white",fontWeight:"500",borderRadius:"3px",px:"4px",pb:"20px",fontSize:"24px",children:e.title}),e.resumo?(0,o.jsx)(p.xu,{maxW:"300px",bg:"rgba(255,255,255,0.7)",mb:"10px",px:"5px",pb:"20px",borderRadius:"5px",children:e.resumo}):(0,o.jsxs)(p.xu,{bg:"black",p:"10px",borderRadius:"5px",mb:"10px",children:[(0,o.jsx)(p.xu,{color:"white",fontWeight:"bold",children:"N\xe3o possui resumo"}),(0,o.jsx)(d(),{href:"/painel/artigos?search=".concat(e.title),children:(0,o.jsx)(u.zx,{size:"sm",children:"Criar um resumo"})})]}),(0,o.jsx)(p.xu,{mt:"30px",color:"white",bg:"mbpink.700",fontWeight:"bold",maxW:"250px",px:"5px",pb:"25px",borderRadius:"5px",children:"Saiba mais:"})]}),(0,o.jsx)(h.Ee,{crossOrigin:"anonymous",objectFit:"cover",w:"360px",h:"640px",borderRadius:"5px",src:e.thumbArr&&(null===(r=e.thumbArr[0])||void 0===r?void 0:r.url),alt:"foto moradia"})]}),(0,o.jsxs)(p.kC,{gridGap:"10px",children:[(0,o.jsx)(u.zx,{colorScheme:"purple",bg:"black",size:"xs",onClick:()=>(function(e){let r=document.getElementById("article-".concat(e));j()(r,{useCORS:!0,backgroundColor:null}).then(e=>{var r,i,o;r=e.toDataURL("image/png"),i="StoriesDoDia.png",(o=document.createElement("a")).download=i,o.href=r,document.body.appendChild(o),o.click()})})(e.id),children:"Download"}),(0,o.jsx)(S.CopyToClipboard,{text:"https://morandoembarao.com/barao-geraldo/".concat(e.id),onCopy:()=>alert("copiado: https://morandoembarao.com/barao-geraldo/".concat(e.id)),children:(0,o.jsx)(u.zx,{colorScheme:"purple",bg:"black",size:"xs",children:"Copy Url"})}),(0,o.jsx)(d(),{href:"/painel/artigos?search=".concat(e.title),children:(0,o.jsx)(u.zx,{colorScheme:"purple",bg:"black",size:"xs",children:"Editar"})}),(0,o.jsx)(u.zx,{onClick:()=>ep(e),colorScheme:"purple",bg:"black",size:"xs",children:"Publicado"})]}),e.lastStoryPost&&(0,o.jsxs)(p.xu,{children:[(0,o.jsxs)(p.xu,{fontSize:"12px",fontWeight:"bold",mt:"10px",children:["Story publicado em: ",null===(i=e.lastStoryPost)||void 0===i?void 0:i.dateString]}),(0,z.Z)(new Date,new Date(null===(t=e.lastStoryPost)||void 0===t?void 0:t.t
1imestamp))]})]},e.id)})}),(0,o.jsx)(p.kC,{children:(0,o.jsx)(u.zx,{bg:"black",color:"white",size:"xs",onClick:ed,children:"Carregar mais"})})]})]})})}),(0,o.jsxs)(p.xu,{mb:"20px",p:["10px","15px","20px","20px"],bg:"gray.50",borderRadius:"8px",border:"1px solid",borderColor:"gray.200",children:[(0,o.jsx)(p.X6,{size:["sm","md","md","md"],mb:["15px","20px","20px","20px"],children:"Stats Moradias Aluguel"}),(()=>{let e=new Set(A.filter(e=>"aluguel"===e.negocio&&"Sala Comercial"!==e.tipo).map(e=>e.id)),r=L.filter(r=>e.has(r.docId));return(0,o.jsxs)(m.pr,{flexDirection:["column","row","row","row"],gap:["15px","20px","20px","20px"],children:[(0,o.jsxs)(m.kN,{mb:["10px","0","0","0"],p:["10px","15px","15px","15px"],bg:["white","transparent","transparent","transparent"],borderRadius:["8px","0","0","0"],border:["1px solid","none","none","none"],borderColor:["gray.200","transparent","transparent","transparent"],children:[(0,o.jsx)(m.dw,{fontSize:["12px","14px","14px","14px"],children:"Total de Unidades"}),(0,o.jsx)(m.Jf,{fontSize:["20px","24px","24px","24px"],wordBreak:"break-word",children:r.length}),(0,o.jsx)(m.vh,{fontSize:["11px","12px","12px","12px"],children:"Todas as unidades cadastradas (aluguel)"})]}),(0,o.jsxs)(m.kN,{mb:["10px","0","0","0"],p:["10px","15px","15px","15px"],bg:["white","transparent","transparent","transparent"],borderRadius:["8px","0","0","0"],border:["1px solid","none","none","none"],borderColor:["gray.200","transparent","transparent","transparent"],children:[(0,o.jsx)(m.dw,{fontSize:["12px","14px","14px","14px"],children:"Unidades Dispon\xedveis"}),(0,o.jsx)(m.Jf,{fontSize:["20px","24px","24px","24px"],wordBreak:"break-word",children:r.filter(e=>!0===e.disponivel).length}),(0,o.jsx)(m.vh,{fontSize:["11px","12px","12px","12px"],children:"Unidades dispon\xedveis para aluguel"})]}),(0,o.jsxs)(m.kN,{mb:["10px","0","0","0"],p:["10px","15px","15px","15px"],bg:["white","transparent","transparent","transparent"],borderRadius:["8px","0","0","0"],border:["1px solid","none","none","none"],borderColor:["gray.200","transparent","transparent","transparent"],children:[(0,o.jsx)(m.dw,{fontSize:["12px","14px","14px","14px"],children:"Total Primeiro Aluguel Dispon\xedvel"}),(0,o.jsxs)(m.Jf,{fontSize:["18px","22px","24px","24px"],wordBreak:"break-word",children:["R$ ",r.filter(e=>!0===e.disponivel&&e.preco).reduce((e,r)=>{let i=parseFloat(r.preco.toString().replace(/R\$\s?/gi,"").replace(/\./g,"").replace(",",".").trim());return e+(isNaN(i)?0:i)},0).toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,o.jsx)(m.vh,{fontSize:["11px","12px","12px","12px"],children:"Soma dos pre\xe7os das unidades dispon\xedveis (aluguel)"})]})]})})()]}),(0,o.jsxs)(p.xu,{mb:"20px",p:"20px",bg:"gray.50",borderRadius:"8px",border:"1px solid",borderColor:"gray.200",children:[(0,o.jsx)(p.X6,{size:"md",mb:"20px",children:"Top 6 Unidades de Aluguel por Pre\xe7o"}),(()=>{let e=A.filter(e=>"aluguel"===e.negocio&&"Sala Comercial"!==e.tipo),r=new Set(e.map(e=>e.id)),i=L.filter(e=>r.has(e.docId)),t=e=>{if(!e)return 0;let r=parseFloat(e.toString().replace(/R\$\s?/gi,"").replace(/\./g,"").replace(",",".").trim());return isNaN(r)?0:r},n=i.filter(e=>e.preco&&!0===e.disponivel).map(r=>{let i=e.find(e=>e.id===r.docId);return{...r,precoNum:t(r.preco),moradiaTitulo:(null==i?void 0:i.titulo)||"Moradia n\xe3o encontrada"}}).sort((e,r)=>r.precoNum-e.precoNum).slice(0,6);return(0,o.jsx)(p.rj,{templateColumns:["1fr","1fr","1fr 1fr","1fr 1fr 1fr"],gridGap:"15px",children:n.map((e,r)=>(0,o.jsxs)(p.xu,{p:"15px",bg:"white",borderRadius:"5px",border:"1px solid",borderColor:"gray.300",shadow:"sm",children:[(0,o.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"center",mb:"10px",children:[(0,o.jsxs)(p.xv,{fontSize:"12px",fontWeight:"bold",color:"gray.600",children:["#",r+1]}),(0,o.jsxs)(p.xv,{fontSize:"16px",fontWeight:"bold",color:"green.600",children:["R$ ",e.precoNum.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})]})]}),(0,o.jsx)(p.xv,{fontSize:"14px",fontWeight:"500",mb:"5px",noOfLines:1,children:e.nome||"Sem nome"}),(0,o.jsx)(p.xv,{fontSize:"12px",color:"gray.600",mb:"5px",noOfLines:2,title:e.moradiaTitulo,children:e.moradiaTitulo}),(0,o.jsx)(p.xv,{fontSize:"11px",color:e.disponivel?"green.600":"gray.500",children:e.disponivel?"Dispon\xedvel":"Indispon\xedvel"})]},"".concat(e.docId,"-").concat(e.id||r)))})})(),(0,o.jsx)(p.kC,{justifyContent:"center",mt:"20px",children:(0,o.jsx)(u.zx,{onClick:()=>q(!Q),colorScheme:"blue",size:"xs",children:Q?"Ocultar Top 20":"Ver Top 20"})}),Q&&(0,o.jsxs)(p.xu,{mt:"20px",children:[(0,o.jsx)(p.X6,{size:"sm",mb:"15px",children:"Top 20 Unidades de Aluguel por Pre\xe7o"}),(()=>{let e=A.filter(e=>"aluguel"===e.negocio&&"Sala Comercial"!==e.tipo),r=new Set(e.map(e=>e.id)),i=L.filter(e=>r.has(e.docId)),t=e=>{if(!e)return 0;let r=parseFloat(e.toString().replace(/R\$\s?/gi,"").replace(/\./g,"").replace(",",".").trim());return isNaN(r)?0:r},n=i.filter(e=>e.preco&&!0===e.disponivel).map(r=>{let i=e.find(e=>e.id===r.docId);return{...r,precoNum:t(r.preco),moradiaTitulo:(null==i?void 0:i.titulo)||"Moradia n\xe3o encontrada"}}).sort((e,r)=>r.precoNum-e.precoNum).slice(6,26);return(0,o.jsx)(p.xu,{children:n.map((e,r)=>(0,o.jsx)(p.xu,{p:"15px",bg:"white",borderRadius:"5px",border:"1px solid",borderColor:"gray.300",shadow:"sm",mb:"10px",children:(0,o.jsxs)(p.kC,{justifyContent:"space-between",alignItems:"center",flexWrap:"wrap",gap:"10px",children:[(0,o.jsxs)(p.kC,{alignItems:"center",gap:"10px",flex:"1",minW:"200px",children:[(0,o.jsxs)(p.xv,{fontSize:"14px",fontWeight:"bold",color:"gray.600",minW:"30px",children:["#",r+7]}),(0,o.jsxs)(p.xu,{flex:"1",children:[(0,o.jsx)(p.xv,{fontSize:"14px",fontWeight:"500",mb:"3px",noOfLines:1,children:e.nome||"Sem nome"}),(0,o.jsx)(p.xv,{fontSize:"12px",color:"gray.600",noOfLines:1,title:e.moradiaTitulo,children:e.moradiaTitulo})]})]}
1),(0,o.jsxs)(p.kC,{alignItems:"center",gap:"15px",children:[(0,o.jsxs)(p.xv,{fontSize:"16px",fontWeight:"bold",color:"green.600",children:["R$ ",e.precoNum.toLocaleString("pt-BR",{minimumFractionDigits:2,maximumFractionDigits:2})]}),(0,o.jsx)(p.xv,{fontSize:"12px",color:e.disponivel?"green.600":"gray.500",minW:"80px",textAlign:"right",children:e.disponivel?"Dispon\xedvel":"Indispon\xedvel"})]})]})},"".concat(e.docId,"-").concat(e.id||r)))})})()]})]}),(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsx)(p.xu,{fontSize:"13px",fontWeight:"bold",mb:"10px",children:"Moradias Admistra\xe7\xe3o MB"}),(0,o.jsx)(p.rj,{templateColumns:["1fr","1fr","1fr 1fr 1fr","1fr 1fr 1fr"],gridGap:"10px",children:A.filter(e=>!0===e.our_adm).map(e=>{var r;return(0,o.jsxs)(p.xu,{position:"relative",children:[(0,o.jsxs)(p.xu,{position:"absolute",top:"15px",left:"10px",children:[(0,o.jsx)(p.xu,{bg:"white",fontWeight:"500",borderRadius:"3px",mb:"5px",px:"4px",fontSize:"14px",children:e.titulo}),(0,o.jsx)(d(),{href:"/painel/moradores",children:(0,o.jsxs)(p.kC,{alignItems:"center",bg:"gray.700",mr:"5px",color:"white",fontWeight:"400",borderRadius:"3px",px:"4px",fontSize:"13px",mb:"5px",children:[(0,o.jsx)(p.xu,{mr:"10px",children:"Moradores: 1"}),(0,o.jsx)(p.xu,{border:"1px solid grey",fontSize:"10px",px:"3px",borderRadius:"3px",children:"Abrir"})]})}),(0,o.jsx)(p.xu,{bg:"gray.700",color:"white",fontWeight:"400",borderRadius:"3px",px:"4px",fontSize:"13px",children:"Chamados: 0"})]}),(0,o.jsx)(u.zx,{position:"absolute",bottom:"10px",left:"10px",size:"xs",colorScheme:"blue",children:"Abrir | Em Constru\xe7\xe3o"}),(0,o.jsx)(h.Ee,{h:"200px",borderRadius:"5px",src:e.thumbArr&&(null===(r=e.thumbArr[0])||void 0===r?void 0:r.url),alt:"foto moradia"})]})})})]}),(0,o.jsxs)(p.rj,{templateColumns:["1fr","1fr","1fr 1fr 1fr","1fr 1fr 1fr"],gridGap:"10px",children:[el("lista-espera")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Lista de Espera"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[F.length," cadastradas"]})]}),(0,o.jsx)(w,{children:F.sort((e,r)=>r.timestamp-e.timestamp).slice(0,5).map(e=>(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.createdAt}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.nome}),ex(e.createdAt.split("/")[2]+"-"+e.createdAt.split("/")[1]+"-"+e.createdAt.split("/")[0])&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]},e.id))}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/lista-espera",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("log-contato")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Log Contatos"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[B.length," logs"]})]}),(0,o.jsx)(w,{children:B.sort((e,r)=>r.createdAt.seconds-e.createdAt.seconds).slice(0,5).map(e=>{var r,i;return(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:new Date((null===(r=e.createdAt)||void 0===r?void 0:r.seconds)*1e3).toLocaleString("pt-BR",{year:"numeric",month:"numeric",day:"numeric"})}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:e.nome}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:e.moradia}),ex(new Date((null===(i=e.createdAt)||void 0===i?void 0:i.seconds)*1e3).toLocaleString("en-US",{year:"numeric",month:"numeric",day:"numeric"}))&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]},e.id)})}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/log-contato",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("vistoria")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Vistorias"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[J.length," vistorias"]})]}),(0,o.jsx)(w,{children:J.sort((e,r)=>r.createdAt.seconds-e.createdAt.seconds).slice(0,5).map(e=>{var r,i,t;return(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:new Date((null===(r=e.createdAt)||void 0===r?void 0:r.seconds)*1e3).toLocaleStr
1ing("pt-BR",{year:"numeric",month:"numeric",day:"numeric"})}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:null===(i=e.nomeMoradia)||void 0===i?void 0:i.label}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"5px",fontSize:"12px",children:e.moradia}),ex(new Date((null===(t=e.createdAt)||void 0===t?void 0:t.seconds)*1e3).toLocaleString("en-US",{year:"numeric",month:"numeric",day:"numeric"}))&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]},e.id)})}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/vistoria",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("mapa-da-fruta")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Frutas Inseridas"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[X.length," aguardando"]})]}),(0,o.jsx)(w,{children:X.sort((e,r)=>new Date(r.timestamp).getTime()-new Date(e.timestamp).getTime()).slice(0,5).map(e=>(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.timestamp}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.nome}),ex(e.timestamp)&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]},e.id))}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/mapa-da-fruta",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("eventos")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Festas"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[i.length," publicadas"]})]}),(0,o.jsx)(w,{children:i.sort((e,r)=>{var i,o;return(null===(i=e.createdAt)||void 0===i?void 0:i.seconds)-(null===(o=r.createdAt)||void 0===o?void 0:o.seconds)}).slice(0,5).map(e=>{var r;return(0,o.jsx)(C,{children:(0,o.jsxs)(p.kC,{children:[(0,o.jsx)(p.xu,{children:e.nome}),ex(new Date((null===(r=e.createdAt)||void 0===r?void 0:r.seconds)*1e3).toLocaleString("en-US",{year:"numeric",month:"numeric",day:"numeric"}))&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]})},e.id)})}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/eventos",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("artigos")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsx)(d(),{href:"/painel/artigos",children:(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Artigos"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[k.length," publicados"]})]})}),(0,o.jsx)(w,{children:k.sort((e,r)=>{var i,o;return(null===(i=r.diahorario)||void 0===i?void 0:i.seconds)-(null===(o=e.diahorario)||void 0===o?void 0:o.seconds)}).slice(0,5).map(e=>{var r,i;return(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsxs)(p.xu,{mr:"10px",fontSize:"12px",children:[" ","".concat(new Date((null==e?void 0:null===(r=e.diahorario)||void 0===r?void 0:r.seconds)*1e3).toLocaleDateString("pt-BR"))]}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.title}),ex((null==e?void 0:null===(i=e.diahorario)||void 0===i?void 0:i.seconds)*1e3)&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"})]},e.id)})}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/artigos",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todos"})})})]}),el("empregos")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsx)(d(),{href:"/painel/empregos",children:(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Empregos"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[l.length," publicados"]})]})}),(0,o.jsx)(w,{children:l.sort((e,r)=>{var i,o;return(null===(i=r.createdAt)||void 0===i?void 0:i.seconds)-(null===(o=e.createdAt)||void 0===o?void 0:o.seconds)}).slice(0,5).map(e=>{var r,i;return(0,o.jsxs)(p.kC,{alignItems:"center",borderBottom:"1px solid",borderColor:"gray.300",py:"7px",children:[(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:new Date((null===(r=e.createdAt)||void 0===r?void 0:r.seconds)*1e3).toLocaleStr
1ing("pt-BR",{year:"numeric",month:"numeric",day:"numeric"})}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:"-"}),(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",children:e.nome}),ex(new Date((null===(i=e.createdAt)||void 0===i?void 0:i.seconds)*1e3).toLocaleString("en-US",{year:"numeric",month:"numeric",day:"numeric"}))&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"green.500",px:"4px",borderRadius:"4px",color:"white",children:"Novo"}),"NXikl7MlLqfusCCYlKpVUkZ0mjF2"===e.userId&&(0,o.jsx)(p.xu,{mr:"10px",fontSize:"12px",bg:"yellow.500",px:"4px",borderRadius:"4px",color:"white",children:"Adm"})]},e.id)})}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/empregos",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todos"})})})]}),el("moradias")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Moradias"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[A.length," publicados"]})]}),(0,o.jsx)(w,{children:A.slice(0,5).map(e=>(0,o.jsx)(C,{children:e.titulo},e.id))}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/moradias",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todas"})})})]}),el("encontre")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsx)(d(),{href:"/painel/encontre",children:(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Comercios"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[O.length," publicados"]})]})}),(0,o.jsx)(w,{children:O.slice(0,5).map(e=>(0,o.jsx)(p.rj,{templateColumns:"1fr 50px",gridGap:"10px",children:(0,o.jsx)(C,{children:e.nome})},e.id))}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/encontre",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todos"})})})]}),el("republicas")&&(0,o.jsxs)(p.xu,{mb:"10px",border:"1px solid",borderColor:"gray.300",borderRadius:"5px",p:"5px",bg:"gray.100",children:[(0,o.jsx)(d(),{href:"/painel/republicas",children:(0,o.jsxs)(p.kC,{alignItems:"center",mb:"10px",children:[(0,o.jsx)(y,{children:"Rep\xfablicas"}),(0,o.jsxs)(p.xu,{fontSize:"15px",children:[N.length," publicadas"]})]})}),(0,o.jsx)(w,{children:N.slice(0,5).map(e=>(0,o.jsx)(p.rj,{templateColumns:"1fr 50px",gridGap:"10px",children:(0,o.jsx)(C,{children:e.titulo})},e.id))}),(0,o.jsx)(I,{children:(0,o.jsx)(d(),{href:"/painel/republicas",children:(0,o.jsx)(u.zx,{size:"xs",children:"Veja Todos"})})})]})]})]})},R=i(10974),A=i(91665),D=()=>{let e=(0,t.useContext)(R.Y);return(0,t.useEffect)(()=>{e.setDash(!0)},[]),(0,o.jsx)(A.Z,{children:(0,o.jsx)(k,{})})}},9557:function(){}},function(e){e.O(0,[5443,9956,6984,8764,5713,653,218,2277,2075,1665,2888,9774,179],function(){return e(e.s=33059)}),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.