"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[424],{3039:function(e,t,a){var s=a(6753);a(7294),a(7272),a(3454).env.API_KEY;let o=async()=>{let e="",t={},a=window.location.host;console.log("URL atual:",a);let o=await (0,s.Z)(),r=o.loginTrue,l=o.login,i=o.urlapi;console.log(r),"sim"===r&&(e=i+"/userfindseo/dados-user-seo/",t={login:l}),"nao"===r&&(console.log("acessado!!!!!!"),e=i+"/userfindseo/dados-user-seo-user-url/",t={login:a.replace(/^www\./,"")});try{let s=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json","Access-Control-Request-Headers":"Content-Type",Origin:"https://"+a,"Access-Control-Request-Method":"POST"},body:JSON.stringify(t)});if(!s.ok)throw Error("Erro na solicita\xe7\xe3o: ".concat(s.status," - ").concat(s.statusText));let o=await s.json();return console.log(o),o.dadosUsuario.dados}catch(e){console.error("Erro ao fazer a solicita\xe7\xe3o:",e)}};t.Z=o},5193:function(e,t,a){a(7294);let s=async()=>{try{let e=window.location.origin,t=await fetch(e+"/dados.json");if(!t.ok)throw Error("Erro ao carregar os dados da empresa");let a=await t.json();return a.url}catch(e){return console.error("Erro ao carregar os dados da empresa:",e),"Erro ao carregar os dados da empresa: "+e.message}};t.Z=s},6753:function(e,t,a){a(7294);let s=async()=>{try{window.location.origin;let e=await fetch("/dados.json");if(!e.ok)throw Error("Erro ao carregar os dados da empresa");let t=await e.json();return t}catch(e){return console.error("Erro ao carregar os dados da empresa:",e),"Erro ao carregar os dados da empresa: "+e.message}};t.Z=s},7952:function(e,t,a){a(7294);var s=a(5193),o=a(3454);o.env.API_KEY;let r=async e=>{let{uf:t,city:a}=e,r=await (0,s.Z)(),l=o.env.API_KEY,i="";try{i=l}catch(e){console.error("Erro ao carregar os dados:",e)}if(""===i)return;let n=await fetch("https://api-buscas.arcaweb.com.br/api/read",{method:"POST",body:JSON.stringify({chave:"qftu_city_uf_ceps_brasil",crud:"read_bairros_city",dados:{hostname:r,uf:t,city:a}})});return await n.json()};t.Z=r},7272:function(e,t,a){a(7294),a(1163)},9321:function(e,t,a){a.d(t,{j1:function(){return o}});var s=a(6753);a(7294);let o=async(e,t)=>{let a=await (0,s.Z)(),o=a.urlapi+t;try{let t=await fetch(o,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)});if(!t.ok)throw Error("Erro na solicita\xe7\xe3o: ".concat(t.status," - ").concat(t.statusText));let a=await t.json();return a}catch(e){console.error("Erro ao fazer a solicita\xe7\xe3o:",e)}}},6916:function(e,t,a){a.d(t,{f:function(){return l}});var s=a(5893),o=a(7294);a(1163);let r=(0,o.createContext)(),l=()=>(0,o.useContext)(r);t.Z=e=>{let{children:t}=e,[a,l]=(0,o.useState)({country:"BRASIL",uf:"",key_word:"",states:"",tel:"",city:"",bairro:"",nome_empresa:"",type_url:"",key_wordTags:""});return(0,s.jsx)(r.Provider,{value:{data:a,setData:l},children:t})}},4311:function(e,t,a){a.d(t,{O:function(){return r},a:function(){return l}});var s=a(5893),o=a(6916);a(7294);let r=e=>{let t,a,{empresaData:r}=e,{data:l,setData:i}=(0,o.f)(),n=r.cp_text_api_zap,c=r.cp_number_whatsapp,d="https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/",h=r.s3pasta,p=r.img_principais;p.forEach((e,s)=>{e.slide_principal_desk&&(t=e.slide_principal_desk),e.slide_principal_mob&&(a=e.slide_principal_mob)});let u=d+h+"/"+t,m=d+h+"/"+a,x=(0,s.jsxs)("div",{id:"slide_principal",children:[(0,s.jsx)("div",{class:"imagem-desktop",children:(0,s.jsx)("a",{href:"https://api.whatsapp.com/send?phone=".concat(c,"&text=").concat(n," , via site marketing ARCAWEB Buscas"),children:(0,s.jsx)("img",{src:"".concat(u),alt:"".concat(l.key_word," EM ").concat(l.bairro," ").concat(l.city,"  ").concat(l.tel," | ").concat(l.uf,"  ").concat(l.cp_nome_empresa),title:"".concat(l.key_word," EM ").concat(l.bairro," ").concat(l.city,"  ").concat(l.tel," | ").concat(l.uf,"  ").concat(l.cp_nome_empresa," "),width:"100%",height:"auto"})})}),(0,s.jsx)("div",{class:"imagem-mobile",children:(0,s.jsx)("a",{href:"https://api.whatsapp.com/send?phone=".concat(c,"&text=").concat(n),children:(0,s.jsx)("img",{src:"".concat(m),alt:"".concat(l.key_word," EM ").concat(l.bairro," ").concat(l.city,"  ").concat(l.tel," | ").concat(l.uf,"  ").concat(l.cp_nome_empresa),title:"".concat(l.key_word," EM ").concat(l.bairro," ").concat(l.city,"  ").concat(l.tel," | ").concat(l.uf,"  ").concat(l.cp_nome_empresa," "),width:"100%",height:"auto"})})})]});return x},l=()=>{let{data:e,setData:t}=(0,o.f)();return(0,s.jsxs)("div",{id:"slide_principal",children:[(0,s.jsx)("div",{class:"imagem-desktop",children:(0,s.jsx)("a",{href:"https://arcawebagencia.com.br",children:(0,s.jsx)("img",{src:"https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/img_buscas/img1920x1920arca.jpeg",alt:"Trafego pago Contagem  Arca Web Ag\xeancia 31 9 9418-0041",title:"Trafego pago Contagem  Arca Web Ag\xeancia 31 9 9418-0041",width:"100%",height:"auto"})})}),(0,s.jsx)("div",{class:"imagem-mobile",children:(0,s.jsx)("a",{href:"https://arcawebagencia.com.br",children:(0,s.jsx)("img",{src:"https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/img_buscas/img1080x1920arca.jpeg",alt:"Trafego pago Contagem  Arca Web Ag\xeancia 31 9 9418-0041 ",title:" Trafego pago Contagem  Arca Web Ag\xeancia 31 9 9418-0041",width:"100%",height:"auto"})})})]})}},1443:function(e,t,a){a.d(t,{Z:function(){return d}});var s=a(5893),o=a(6916),r=a(4051),l=a(1555),i=a(7294),n=function(e){(0,i.useEffect)(()=>{document.querySelector("#open-emoji").addEventListener("click",()=>{console.log("Clicou");let e=document.querySelector("#div-emojis");""==e.style.display?e.style.display="none":e.style.display="inline"}),document.querySelector("#fechar-emoji").addEventListener("click",()=>{document.querySelector("#div-emojis").style.display="none"}),function(){var e=document.getElementById("chatbot-messages"),t=document.getElementById("chatbot-input"),a=document.querySelector(".input-messenger");t.addEventListener("submit",function(t){t.preventDefault();var s=a.value.trim();""!==s&&(function(t,a){var s=document.createElement("div");if(a){s.classList.add("chatbot-message-user");var o=document.createElement("p");o.innerText=t,s.classList.add("chat-bubble"),s.classList.add("sent"),s.appendChild(o);var r=document.createElement("div");r.classList.add("div-client-msn"),r.appendChild(s),e.appendChild(r),document.querySelector("#chatbot-messages").scrollTop=1e3}else{s.classList.add("chatbot-message");var o=document.createElement("p");o.innerText=t,s.classList.add("sent"),s.appendChild(o),e.appendChild(s)}}(s,!0),a.value="")});let s=document.querySelectorAll(".emoji");s.forEach(e=>{e.addEventListener("click",()=>{let t=document.querySelector(".input-messenger");console.log(e.innerHTML+"teste "),t.value=t.value+e.innerHTML})})}();let e=document.querySelectorAll(".whatsapp-btn2"),t=document.querySelector("#close-chat-bot"),a=()=>{!function(){let e=window.scrollY;document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top="-".concat(e,"px")}();let e=document.querySelector(".modal-backdrop");e.style.display="inline",(e=document.querySelector(".row-any")).style.display="flex"};e.forEach(e=>{e.addEventListener("click",a)}),t.addEventListener("click",()=>{!function(){let e=parseInt(document.body.style.top||"0",10);document.body.style.overflow="",document.body.style.position="",document.body.style.top="",window.scrollTo(0,-1*e)}();let e=document.querySelector(".modal-backdrop");e.style.display="none",(e=document.querySelector(".row-any")).style.display="none"})},[])},c=a(5005),d=e=>{let{data:t,setData:a}=(0,o.f)(),i=e.empresaData.cp_telefone,d=e.empresaData.cp_number_whatsapp,h=e.empresaData.cp_text_api_zap,p="https://api.whatsapp.com/send?phone=".concat(d,"&text=").concat(h);n(e.empresaData);let u=(0,s.jsxs)("div",{children:[(0,s.jsx)("div",{id:"div-top-chatbot",children:(0,s.jsxs)(r.Z,{className:"row-any",children:[(0,s.jsx)(l.Z,{xs:0,md:8,lg:8}),(0,s.jsx)(l.Z,{xs:12,md:4,lg:4,children:(0,s.jsx)("div",{id:"div-chatbot",children:(0,s.jsxs)("div",{id:"chatbot-container",children:[(0,s.jsx)("div",{className:"top-bar",children:(0,s.jsxs)("div",{className:"itens-top-bar",children:[(0,s.jsx)("img",{className:"profile-image",src:"https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/img_buscas/ANY-perfil-small.png",alt:"Imagem de perfil"}),(0,s.jsxs)("h1",{className:"h1-assistente",children:["Any",(0,s.jsx)("b",{class:"status-assistente",children:"Offline"}),(0,s.jsx)("i",{id:"close-chat-bot",class:"bi bi-x-square-fill icone",alt:"Fechar",title:"Fechar"})]})]})}),(0,s.jsxs)("div",{id:"chatbot-messages",children:[(0,s.jsx)("div",{className:"chat-bubble ",children:(0,s.jsxs)("p",{children:["".concat(t.key_word.split("EM")[0]," EM ").concat(t.bairro," ").concat(t.city,"  ").concat(t.tel," | ").concat(t.uf,"  ").concat(t.cp_nome_empresa," "),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})}),(0,s.jsx)("div",{className:"chat-bubble ",children:(0,s.jsxs)("p",{children:["Oi tudo bem eu sou a Any da Ag\xeancia ArcaWeb Buscas, a qualquer momento poder chamar nos contatos:",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),"Whataspp:",(0,s.jsx)("br",{}),(0,s.jsxs)("b",{style:{color:"green"},children:[i," "]})," ",(0,s.jsx)("br",{})," ",(0,s.jsx)("br",{}),"Telefone:",(0,s.jsx)("br",{})," ",(0,s.jsx)("b",{children:i}),"."]})}),(0,s.jsx)("div",{className:"chat-bubble ",children:(0,s.jsxs)("p",{children:["CHAT OFFLINE ",(0,s.jsx)("b",{style:{color:"red"},children:"ATENDEMTE INDISPON\xcdVEL"}),"  CHAME NO WHATSAAP ",(0,s.jsxs)("b",{style:{color:"green"},children:[i," "]})]})}),(0,s.jsxs)("div",{className:"button-container",children:[(0,s.jsxs)(c.Z,{className:" btn-3d",variant:"primary",size:"lg",title:"Arcaweb Ag\xeancia",alt:"Arcaweb Ag\xeancia",children:[t.tel," ",(0,s.jsx)("i",{class:"bi bi-whatsapp"})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})]}),(0,s.jsxs)("div",{id:"div-emojis",children:[(0,s.jsxs)("div",{className:"emoji-selection-menu",children:[(0,s.jsx)("span",{className:"emoji",children:"\uD83D\uDE00"}),(0,s.jsx)("span",{className:"emoji",children:"\uD83D\uDE01"}),(0,s.jsx)("span",{className:"emoji",children:"\uD83D\uDE02"}),(0,s.jsx)("span",{className:"emoji",children:"\uD83D\uDE03"}),(0,s.jsx)("span",{className:"emoji",children:"\uD83D\uDE20"}),(0,s.jsx)("i",{class:"bi bi-x-square-fill icone-close-emoji",alt:"Fechar Emoji",title:"Fechar Emoji"})]}),(0,s.jsxs)("div",{class:"emoji-selection-menu",children:[(0,s.jsx)("span",{class:"emoji",children:"\uD83D\uDE25"}),(0,s.jsx)("span",{class:"emoji",children:"\uD83D\uDE05"}),(0,s.jsx)("span",{class:"emoji",children:"\uD83D\uDE0A"}),(0,s.jsx)("span",{class:"emoji",children:"\uD83D\uDE0D"}),(0,s.jsx)("span",{class:"emoji",children:"\uD83D\uDC4D"}),(0,s.jsx)("i",{id:"fechar-emoji",class:"bi bi-x-square-fill icone-close-emoji",alt:"Fechar Emoji",title:"Fechar Emoji"})]})]}),(0,s.jsxs)("form",{id:"chatbot-input",children:[(0,s.jsx)("span",{id:"open-emoji",children:"\uD83D\uDE00"}),(0,s.jsx)("input",{className:"input-messenger",type:"text",placeholder:"Digite sua mensagem"}),(0,s.jsx)("button",{type:"submit",children:"Enviar"})]}),(0,s.jsx)("div",{style:{"padding-left":"20px"},children:(0,s.jsxs)("p",{children:["Desenvolvido ",(0,s.jsx)("a",{href:"https://arcawebagencia.com.br",style:{"text-decoration":"none",color:"#f76a02"},children:" ArcaWeb Ag\xeancia "})]})})]})})})]})}),(0,s.jsx)("div",{className:"modal-backdrop fade show backdrop-chatbot"}),(0,s.jsx)("div",{alt:"Chame Atrav\xe9s do whatsapp",title:"Chame Atrav\xe9s do whatsapp",className:"whatsapp-btn whatsapp-btn2",width:"50px",style:{},children:(0,s.jsx)("a",{href:p,target:"_blank",style:{"text-decoration":"none",color:"white"},children:(0,s.jsx)("i",{className:"bi bi-whatsapp chatbot-any",style:{padding:"10px"}})})})]});return u}},7014:function(e,t,a){var s=a(5893),o=a(6916),r=a(682),l=a(4051),i=a(1555),n=a(4020);function c(e){for(let t=e.length-1;t>0;t--){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}return e}function d(e){return new n.U().Low_RemActs_format(e)}t.Z=e=>{let t;let{data:a,setData:n}=(0,o.f)();window.location.hostname;let h=window.location.port;t="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+h:"https://"+window.location.hostname;let p=e.empresaData.cp_descript;console.log(e.empresaData),console.log(p);let u=c(e.empresaData.tags_seo),m=c(e.empresaData.frases_seo),x=e.empresaData.cp_email,f=e.empresaData.cp_endress,b=(0,s.jsx)("footer",{children:(0,s.jsx)("div",{style:{"padding-top":"3%","padding-bottom":"0%"},children:(0,s.jsx)(r.Z,{className:"footer",fluid:!0,style:{"background-color":"#02709e"},children:(0,s.jsx)(r.Z,{className:"",style:{"padding-top":"3%"},children:(0,s.jsxs)(l.Z,{children:[(0,s.jsxs)(i.Z,{xs:12,md:12,lg:5,style:{color:"white","padding-left":"3%","padding-right":"3%"},children:[(0,s.jsx)("h6",{style:{"font-weight":"bold"},children:"SOBRE A EMPRESA:"}),(0,s.jsx)("br",{}),(0,s.jsxs)("li",{style:{"font-weight":"bold","font-size":"0.9em","list-style-type":"none"},children:[u[0]," . ",m[0]," "," ",". "," ",a.key_word," em ",a.bairro," "," ",a.city,", ",p," "," ",u[0]," . ",m[0]]}),(0,s.jsx)("br",{}),(0,s.jsx)("li",{style:{"font-weight":"bold","font-size":"0.9em","list-style-type":"none"},children:(0,s.jsx)("a",{href:"/sitemap.xml",style:{"text-decoration":"none",color:"white"},children:"SITEMAP"})}),(0,s.jsx)("br",{})]}),(0,s.jsxs)(i.Z,{xs:12,md:12,lg:3,style:{color:"white","padding-left":"3%","padding-right":"3%"},children:[(0,s.jsx)("h6",{style:{"font-weight":"bold"},children:"CONTATOS:"}),(0,s.jsx)("br",{}),(0,s.jsxs)("ul",{style:{"font-size":"0.8em","list-style-type":"none"},children:[(0,s.jsxs)("li",{children:[(0,s.jsx)("i",{class:"bi bi-geo-alt-fill",style:{color:"white","padding-right":"3%"}}),(0,s.jsx)("a",{href:"#",style:{color:"white","text-decoration":"none"},children:f})]}),(0,s.jsxs)("li",{style:{color:"white","padding-top":"3%"},children:[(0,s.jsx)("i",{class:"bi bi-telephone",style:{color:"white","padding-right":"3%"}}),(0,s.jsx)("a",{href:"#",style:{color:"white","text-decoration":"none"},children:a.tel})]}),(0,s.jsxs)("li",{style:{color:"white","padding-top":"3%"},children:[(0,s.jsx)("i",{class:"bi bi-envelope-at-fill",style:{color:"white","padding-right":"15px"}}),(0,s.jsx)("a",{href:"#",style:{color:"white","text-decoration":"none"},children:x})]})]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]}),(0,s.jsxs)(i.Z,{xs:12,md:12,lg:2,style:{color:"white","padding-left":"0%","padding-right":"0%"},children:[(0,s.jsx)("h6",{style:{"font-weight":"bold"},children:"META TAGS:"}),(0,s.jsx)("br",{}),(0,s.jsxs)("ul",{style:{"list-style-type":"none"},children:[(0,s.jsx)("li",{style:{"white-space":"nowrap","line-height":"1",display:"inline-block","margin-top":"2%","margin-bottom":"2%","font-weight":"900","font-size":"0.7em",border:"1px solid white","border-radius":"20px",padding:"2%","background-color":"white",color:"#02709E"},children:(0,s.jsx)("a",{href:t+"/"+d(a.key_word+" em "+u[0]+" em "+a.city+" "+a.uf+" brasil b"),style:{color:"#288389","text-decoration":"none"},children:u[0]})}),(0,s.jsx)("br",{}),(0,s.jsx)("li",{style:{"white-space":"nowrap","line-height":"1",display:"inline-block","margin-top":"2%","margin-bottom":"2%","font-weight":"900","font-size":"0.7em",border:"1px solid white","border-radius":"20px",padding:"2%","background-color":"white",color:"#02709E"},children:(0,s.jsx)("a",{href:t+"/"+d(a.key_word+" em "+u[1]+" em "+a.city+" "+a.uf+" brasil b"),style:{color:"#288389","text-decoration":"none"},children:u[1]})}),(0,s.jsx)("br",{}),(0,s.jsx)("li",{style:{"white-space":"nowrap","line-height":"1",display:"inline-block","margin-top":"2%","margin-bottom":"2%","font-weight":"900","font-size":"0.7em",border:"1px solid white","border-radius":"20px",padding:"2%","background-color":"white",color:"#02709E"},children:(0,s.jsx)("a",{href:t+"/"+d(a.key_word+" em "+u[2]+" em "+a.city+" "+a.uf+" brasil b"),style:{color:"#288389","text-decoration":"none"},children:u[2]})}),(0,s.jsx)("br",{}),(0,s.jsx)("li",{style:{"white-space":"nowrap","line-height":"1",display:"inline-block","margin-top":"2%","margin-bottom":"2%","font-weight":"900","font-size":"0.7em",border:"1px solid white","border-radius":"20px",padding:"2%","background-color":"white",color:"#02709E"},children:(0,s.jsx)("a",{href:t+"/"+d(a.key_word+" em "+u[3]+" em "+a.city+" "+a.uf+" brasil b"),style:{color:"#288389","text-decoration":"none"},children:u[3]})}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})]}),(0,s.jsxs)(i.Z,{xs:12,md:12,lg:2,style:{color:"white","padding-left":"3%","padding-right":"3%"},children:[(0,s.jsx)("h6",{style:{"font-weight":"bold"},children:"REDES SOCIAIS:"}),(0,s.jsx)("br",{}),(0,s.jsx)("i",{class:"bi bi-instagram",style:{color:"white","padding-right":"15px"}}),(0,s.jsx)("i",{class:"bi bi-facebook",style:{color:"white","padding-right":"15px"}}),(0,s.jsx)("i",{class:"bi bi-geo-alt-fill",style:{color:"white","padding-right":"15px"}}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})]})})})})});return b}},2969:function(e,t,a){a(5893)},4741:function(e,t,a){var s=a(5893),o=a(7294),r=a(1163),l=a(682),i=a(4051),n=a(1555),c=a(4020),d=a(6753),h=a(9321),p=a(5005);function u(e){return new c.U().Low_RemActs_format(e)}t.Z=e=>{let t,{empresaData:a}=e,[c,m]=(0,o.useState)(null),[x,f]=(0,o.useState)(null),b=(0,r.useRouter)(),y=e=>{b.push(e)},g=()=>{b.push("/servicos-produtos")},j=(e,t)=>{let s=a.palavras_chave_word,o=Math.floor(Math.random()*s.length);u(s[o]);let r="/item/"+"".concat(e)+"/"+u("".concat(t));y(r)};(0,o.useEffect)(()=>{let e=async()=>{try{let e=await (0,d.Z)();f(e)}catch(e){console.error("Erro ao carregar os dados:",e)}};e()},[]);let w=async()=>{try{if(null!==x){let e="";if("sim"==x.loginTrue&&(e={hostname:x.url}),"nao"===x.loginTrue){let t=window.location.host;e={hostname:t.replace(/^www\./,"")}}let t=await (0,h.j1)(e,"/product/find-allproduct-url-hostname");m(t)}}catch(e){console.error("Erro ao obter dados dos distritos:",e)}};null==c&&void 0==c&&null!==x&&w(),null!=c&&(t=c.dados);let _=[];if(!(null!==t&&Array.isArray(t)))return(0,s.jsx)("div",{children:(0,s.jsx)("b",{children:"Cadastre um produto n\xe3o h\xe1 produtos cadastrados!!!"})});t.map((e,t)=>{let a=e.titulo_anucio,o=e.fotos_imgs[0],r=e._id,l=e.s3pasta,i=(0,s.jsx)(n.Z,{xs:12,md:12,lg:4,style:{"text-align":"center"},children:(0,s.jsx)("div",{children:(0,s.jsxs)("div",{href:"#",onClick:e=>{e.preventDefault(),j(r,a)},style:{cursor:"pointer"},children:[(0,s.jsxs)("h6",{children:[a,":"]}),(0,s.jsx)("img",{src:"".concat("https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/".concat(l,"/")).concat(o),className:"img-produto",alt:"".concat(a),title:"".concat(a),width:"100%",height:"auto"}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]})})});_.push(i)});let v=(0,s.jsx)("div",{children:(0,s.jsx)(l.Z,{className:"container-imgs",fluid:!0,style:{"padding-top":"3%","padding-bottom":"3%"},children:(0,s.jsxs)(i.Z,{children:[_,(0,s.jsx)(l.Z,{fluid:!0,className:"d-flex align-items-center justify-content-center",style:{height:"100px"},children:(0,s.jsx)(i.Z,{children:(0,s.jsx)(n.Z,{children:(0,s.jsx)("div",{className:"mb-2",onClick:e=>{e.preventDefault(),g()},children:(0,s.jsxs)(p.Z,{className:"  ",variant:"danger",size:"lg",title:"Arcaweb Ag\xeancia",alt:"Arcaweb Ag\xeancia",children:[(0,s.jsx)("i",{class:"bi bi-shop"})," ","VEJA TODOS..."]})})})})})]})})});return(0,s.jsx)("div",{children:v})}},2823:function(e,t,a){var s=a(5893),o=a(6916),r=a(682),l=a(4051),i=a(1555),n=a(7952),c=a(7294),d=a(4020),h=a(1163),p=a(4955);t.Z=e=>{let t,a,u,m;let{data:x,setData:f}=(0,o.f)(),[b,y]=(0,c.useState)(null),[g,j]=(0,c.useState)(null),w=x.uf,_=x.city,v=(0,h.useRouter)(),D=e=>{v.push(e).then(()=>{window.location.reload()})},k=e=>{var t;let{asPath:a,query:s}=v;x.bairro=e.toUpperCase();let o=(t="".concat(x.key_word," bairro ").concat(e," em ").concat(x.city," ").concat(x.uf," brasil r"),new d.U().Low_RemActs_format(t));if(s.id){let e=s.id,t="/item/"+e+"/"+o;console.log(t),D(t);return}D(o)},{query:A}=v;if(("b"!==x.type_url&&"brasil"!==x.type_url||""===w||""===_||!A.id)&&(""===w||""===_||"b"!==x.type_url))return(0,s.jsx)("div",{});{console.log("entrou"),console.log(w),console.log(_),console.log(x.type_url);let e=async()=>{try{let e=await (0,n.Z)({uf:w,city:_});y(e)}catch(e){console.error("Erro ao obter dados dos distritos:",e)}};if(e(),null===b)return;t=(e=>{for(let t=e.length-1;t>0;t--){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}return e})(t=JSON.parse(b));let o="";return 0!==t.length&&(o=t.map((e,t)=>{if(""!==e.bairro)return(0,s.jsxs)("div",{style:{fontSize:"0.7em"},children:[(0,s.jsxs)("li",{href:"#",onClick:t=>{t.preventDefault(),k(e.bairro)},style:{cursor:"pointer"},children:[(0,s.jsx)("i",{className:"bi bi-geo-alt-fill",style:{color:"#0771c9",paddingRight:"15px"}}),(0,s.jsxs)("span",{style:{color:"grey",textDecoration:"none"},children:[x.key_word,(0,s.jsxs)("span",{href:"#",style:{color:"#0771c9",textDecoration:"none"},children:[" "," ",e.bairro.toUpperCase()]})," ",x.city," "," ",(0,s.jsx)(p.Z,{})]})]}),(0,s.jsx)("div",{style:{margin:"7%"}})," "]},t)})),a=o.slice(0,Math.ceil(o.length/3)),u=o.slice(Math.ceil(o.length/3),Math.ceil(2*o.length/3)),m=o.slice(Math.ceil(2*o.length/3)),(0,s.jsxs)("div",{children:[(0,s.jsxs)(r.Z,{className:"container",fluid:!0,style:{"padding-top":"3%","padding-bottom":"0%"},children:[(0,s.jsx)("hr",{style:{color:"#cccccc"}}),(0,s.jsx)(l.Z,{style:{"padding-top":"1%"},children:(0,s.jsx)(i.Z,{xs:12,md:12,lg:12,style:{},children:(0,s.jsxs)("h5",{style:{"text-align":"left",color:"#026ade","font-weight":"bold"},children:["Atendimento todos os Bairros de Cidade de ",x.city," seguem abaixo os Bairros:",(0,s.jsx)(p.Z,{})]})})})]}),(0,s.jsx)(r.Z,{className:"",style:{"padding-top":"3%","padding-bottom":"3%"},children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsxs)("ul",{style:{"list-style":"none"},children:[(0,s.jsx)("br",{}),a," ",(0,s.jsx)(p.Z,{}),(0,s.jsx)("br",{})]})}),(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsxs)("ul",{style:{"list-style":"none"},children:[u," ",(0,s.jsx)(p.Z,{}),(0,s.jsx)("br",{})]})}),(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsxs)("ul",{style:{"list-style":"none"},children:[m," ",(0,s.jsx)(p.Z,{}),(0,s.jsx)("br",{})]})})]})})]})}}},6344:function(e,t,a){var s=a(5893),o=a(6916),r=a(682),l=a(4051),i=a(1555);a(7952),a(7294);var n=a(4020),c=a(1163),d=a(4955);function h(e){return new n.U().Low_RemActs_format(e)}t.Z=e=>{let{data:t,setData:a}=(0,o.f)(),n=(0,c.useRouter)(),p=e=>{n.push(e).then(()=>{window.location.reload()})},u=()=>{let{asPath:e,query:s}=n;a({...t,bairro:""}),a({...t,type_url:"b"});let o=h("".concat(t.key_word," em ").concat(t.city," ").concat(t.uf," brasil b"));if(s.id){let e=s.id,t="/item/"+e+"/"+o;console.log(t),p(t);return}p(o)},m=e=>{let{asPath:s,query:o}=n;a({...t,bairro:""}),a({...t,type_url:"b"});let r=h("".concat(t.key_word," em ").concat(e," ").concat(t.uf," brasil b"));if(o.id){let e=o.id,t="/item/"+e+"/"+r;console.log(t),p(t);return}p(r)},x=e=>Math.floor(Math.random()*e);return(0,s.jsxs)("div",{children:[(0,s.jsxs)(r.Z,{className:"container",fluid:!0,style:{"padding-top":"3%","padding-bottom":"0%"},children:[(0,s.jsx)("hr",{style:{color:"#cccccc"}}),(0,s.jsx)(l.Z,{style:{"padding-top":"1%"},children:(0,s.jsx)(i.Z,{xs:12,md:12,lg:12,style:{},children:(0,s.jsxs)("h5",{style:{"text-align":"left",color:"#026ade","font-weight":"bold"},children:["Atendimento todos os Bairros ",t.bairro," "," de Cidade de ",t.city,":"]})})})]}),(0,s.jsx)(r.Z,{className:"",style:{"padding-top":"3%","padding-bottom":"3%"},children:(0,s.jsxs)(l.Z,{children:[(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsxs)("ul",{style:{"list-style":"none",cursor:"pointer"},children:[(0,s.jsxs)("li",{onClick:e=>{e.preventDefault(),u()},children:[(0,s.jsx)("i",{class:"bi bi-geo-alt-fill",style:{color:"#0771c9","padding-right":"15px"}}),(0,s.jsxs)("span",{style:{color:"grey","text-decoration":"none"},children:[t.key_word," EM BAIRROS DE"]}),(0,s.jsxs)("span",{style:{color:"#0771c9","text-decoration":"none"},children:[" ",t.city]})]}),(0,s.jsx)("br",{}),(()=>{let a;let{query:o}=n,r="";if(o.id){let e=o.id;r="item/"+e+"/"}window.location.hostname;let l=window.location.port;a="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+l+"/"+r:"https://"+window.location.hostname+"/"+r;let i=e.empresaData.anuncio_loc,c=[];i.forEach(e=>{e.state===t.uf&&c.push(e.cities)});let p=c[0];if(null!=p)return p.map(e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:a+h(t.key_word+" em "+e.name+" "+t.uf+" brasil b"),onClick:t=>{t.preventDefault(),m(e.name)},style:{color:"#0771c9",textDecoration:"none"},children:[(0,s.jsx)("i",{className:"bi bi-geo-alt-fill",style:{color:"#0771c9",paddingRight:"15px"}}),(0,s.jsxs)("span",{style:{color:"grey","text-decoration":"none"},children:[t.key_word," EM BAIRROS DE"]}),(0,s.jsxs)("span",{style:{color:"#0771c9",textDecoration:"none"},children:[" ",e.name," "," ",(0,s.jsx)(d.Z,{})," "]})]})}),(0,s.jsx)("br",{})]}))})(t)]})}),(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsx)("ul",{style:{"list-style":"none",cursor:"pointer"},children:(()=>{let a;window.location.hostname;let o=window.location.port;a="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+o+"/":"https://"+window.location.hostname+"/";let r=e.empresaData.anuncio_loc,l=e.empresaData.palavras_chave_word,i=[];if(r.forEach(e=>{e.state===t.uf&&i.push(e.cities)}),i[0],null!=l)return l.map(e=>(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:a+h(e+" em "+t.city+" "+t.uf+" brasil b"),style:{color:"#0771c9",textDecoration:"none"},children:[(0,s.jsx)("i",{className:"bi bi-geo-alt-fill",style:{color:"#0771c9",paddingRight:"15px"}}),(0,s.jsxs)("span",{style:{color:"grey","text-decoration":"none"},children:[e," EM BAIRROS DE"]}),(0,s.jsxs)("span",{style:{color:"#0771c9",textDecoration:"none"},children:[" ",t.city," ",(0,s.jsx)(d.Z,{})," "]})]})}),(0,s.jsx)("br",{})]}))})(t)})}),(0,s.jsx)(i.Z,{xs:12,md:12,lg:4,style:{"text-align":"left"},children:(0,s.jsx)("ul",{style:{"list-style":"none",cursor:"pointer"},children:(()=>{let a;window.location.hostname;let o=window.location.port;a="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+o+"/":"https://"+window.location.hostname+"/";let r=e.empresaData.anuncio_loc,l=e.empresaData.palavras_chave_word,i=l.length,n=e.empresaData.tags_seo,c=n.length,p=[];r.forEach(e=>{e.state===t.uf&&p.push(e.cities)});let u=p[0];if(null!=l&&null!=u)return u.map(e=>{let o=l[x(i)],r=n[x(c)];return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("li",{children:(0,s.jsxs)("a",{href:a+h(o+" em "+e.name+" "+t.uf+" brasil b"),style:{color:"#0771c9",textDecoration:"none"},children:[(0,s.jsx)("i",{className:"bi bi-geo-alt-fill",style:{color:"#0771c9",paddingRight:"15px"}}),(0,s.jsx)("span",{style:{color:"grey","text-decoration":"none"},children:o}),(0,s.jsxs)("span",{style:{color:"#0771c9",textDecoration:"none"},children:[" ",e.name," "]}),(0,s.jsxs)("span",{style:{color:"grey","text-decoration":"none"},children:[r," ",(0,s.jsx)(d.Z,{})," "]})]})}),(0,s.jsx)("br",{})]})})})(t)})})]})})]})}},4955:function(e,t,a){var s=a(5893),o=a(7294);let r=()=>{let e=Math.random()>.5?"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz":"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="";for(let a=0;a<8;a++)t+=e.charAt(Math.floor(Math.random()*e.length));return t};t.Z=()=>{let[e,t]=(0,o.useState)("");return(0,o.useEffect)(()=>{t(r())},[]),(0,s.jsx)("span",{style:{color:"#835d5d",fontWeight:"bold",fontSize:"0.8em"},children:e})}},7165:function(e,t,a){var s=a(5893);a(7294);var o=a(682),r=a(4051),l=a(1555);t.Z=()=>{let e;let t=new Date,a=t.getFullYear();window.location.hostname;let i=window.location.port;e="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+i+"/parceiros-arcaweb":"https://"+window.location.hostname+"/parceiros-arcaweb";let n=(0,s.jsx)("div",{children:(0,s.jsx)(o.Z,{className:"footer",fluid:!0,style:{"background-color":"rgb(8 86 119)"},children:(0,s.jsx)(o.Z,{className:"",style:{"padding-top":"1%","padding-bottom":"1%"},children:(0,s.jsx)(r.Z,{children:(0,s.jsx)(l.Z,{xs:12,md:12,lg:12,style:{"text-align":"center"},children:(0,s.jsxs)("span",{style:{color:"white","padding-bottom":"1%"},children:[(0,s.jsx)("a",{href:"https://buscas.arcaweb.com.br/",style:{color:"grey","text-decoration":"none"},children:(0,s.jsx)("b",{children:"ArcaWeb Buscas (AWB)"})})," "," - Foi Desenvolvimento por: "," ",(0,s.jsxs)("a",{href:"https://arcawebagencia.com.br",style:{color:"orange","text-decoration":"none"},children:["Arca Web Ag\xeancia"," "]}),"\xa9 Copyright 2013 - ",a,". Todos os direitos reservados.",(0,s.jsx)("a",{href:e,style:{"text-decoration":"none"},children:(0,s.jsxs)("b",{children:[" ","Parceiros Arca web"]})})]})})})})})});return(0,s.jsx)("div",{children:n})}},5868:function(e,t,a){var s=a(5893),o=a(7294),r=a(6066),l=a(9321);a(4640),a(9678);var i=a(1163),n=a(6916),c=a(4020);function d(e){return new c.U().Low_RemActs_format(e)}t.Z=()=>{let e;(0,i.useRouter)();let{data:t,setData:a}=(0,n.f)(),[c,h]=(0,o.useState)();if((0,o.useEffect)(()=>{let e=async()=>{let e=await (0,l.j1)({},"/user/find-all-user");h(e)};e()},[]),c){let a="https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/",o=c.dadosUsuario.dados,r="",l=(e=>{for(let t=e.length-1;t>0;t--){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}return e})(o);e=l.map((e,o)=>{let l,i;let n=e.img_principais,c=e.cp_nome_empresa,h=e.palavras_chave_word.length,p=Math.floor(Math.random()*h),u=Math.floor(Math.random()*e.anuncio_loc.length);return n.map((o,n)=>{if(o.logo){if(""==t.type_url)return l="https://"+e.hostname,(0,s.jsx)("div",{children:(0,s.jsx)("a",{href:l,children:(0,s.jsx)("img",{title:e.palavras_chave_word[p]+" "+c,alt:e.palavras_chave_word[p]+" "+c,src:a+e.s3pasta+"/"+o.logo,className:"imgCarrosel",alt:"Imagem 1"})},n)});if("brasil"==t.type_url){let t=d(e.palavras_chave_word[p]),h="";if(e.palavras_chave_word[p]){h=e.anuncio_loc[u].state;let t=e.anuncio_loc[u].cities,a=Math.floor(Math.random()*t.length);i=t[a].name}return r="/"+t+"-em-"+d(i+"  "+h+" brasil"),l="https://"+e.hostname+r,(0,s.jsx)("div",{children:(0,s.jsx)("a",{href:l,children:(0,s.jsx)("img",{title:e.palavras_chave_word[p]+" "+c,alt:e.palavras_chave_word[p]+" "+c,src:a+e.s3pasta+"/"+o.logo,className:"imgCarrosel",alt:"Imagem 1"})},n)})}if("b"==t.type_url||"r"==t.type_url){let t=Math.floor(Math.random()*e.tags_seo.length),h=e.tags_seo[t],m=d(e.palavras_chave_word[p]),x="";if(e.palavras_chave_word[p]){x=e.anuncio_loc[u].state;let t=e.anuncio_loc[u].cities,a=Math.floor(Math.random()*t.length);i=t[a].name}return r="/"+m+"-em-"+d(" "+h+" em "+i+"  "+x+" brasil b"),l="https://"+e.hostname+r,(0,s.jsx)("div",{children:(0,s.jsx)("a",{href:l,children:(0,s.jsx)("img",{title:e.palavras_chave_word[p]+" "+h+" em "+c+" em "+i+"  "+x+" brasil",alt:e.palavras_chave_word[p]+" "+h+" em "+c+" em "+i+"  "+x+" brasil",src:a+e.s3pasta+"/"+o.logo,className:"imgCarrosel",alt:"Imagem 1"})},n)})}}})})}let p=(0,s.jsx)("div",{className:"carousel-image",children:(0,s.jsxs)(r.Z,{dots:!0,infinite:!0,speed:700,autoplay:!0,autoplaySpeed:1e4,slidesToShow:5,slidesToScroll:1,centerMode:!0,arrows:!1,responsive:[{breakpoint:1024,settings:{slidesToShow:2,slidesToScroll:2,infinite:!0,dots:!0}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,initialSlide:1}}],children:[e,e,e]})});return p}},2594:function(e,t,a){var s=a(5893),o=a(6916),r=a(4020),l=a(1163),i=a(4955);function n(e){return new r.U().Low_RemActs_format(e)}function c(e){for(let t=e.length-1;t>0;t--){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}return e}t.Z=e=>{let t;let a=(0,l.useRouter)();window.location.hostname;let r=window.location.port;t="localhost"===window.location.hostname?"http://"+window.location.hostname+":"+r+"/":"https://"+window.location.hostname+"/";let d=e=>{let t=n(e);a.push("/"+t).then(()=>{window.location.reload()})},h=(e,a,r,l)=>{let{data:h,setData:p}=(0,o.f)(),u=c(e),m=u;u=c(a);let x=c(a),f=c(r),b=c(l),y=h.key_word.split(" EM "),g="".concat(y[0]," em ").concat(x[1]," ").concat(h.key_word," em  ").concat(h.city," ").concat(h.uf," brasil b"),j="".concat(y[0]," em ").concat(x[3]," ").concat(h.key_word," em  ").concat(h.city," ").concat(h.uf," brasil"),w="".concat(b[0]," em ").concat(x[1]," ").concat(h.key_word," em  ").concat(h.city," ").concat(h.uf," brasil b"),_=(0,s.jsxs)("div",{children:[x[0]," ",m[0],"  ",(0,s.jsx)(i.Z,{})," ","  ",f[2],"  ",(0,s.jsxs)("a",{href:t+n(g),onClick:()=>d(g),children:[x[3]," ",h.key_word]}),x[0]," ",m[1]," ",f[0]," ",h.cp_nome_empresa,", ",m[2]," ",f[1]," ",x[2],". ",h.bairro," ",f[2]," "," ",f[3]," ",x[3],".",f[4]," ",x[3],".",f[5]," ",(0,s.jsxs)("a",{href:t+n(j),onClick:()=>d(j),children:[x[3]," "]}),x[4],".",f[6]," ",(0,s.jsx)(i.Z,{})," ",m[2]," ",m[4]," ",(0,s.jsxs)("a",{href:t+n(w),onClick:()=>d(w),children:[b[0]," "]}),f[7]," ",m[5]," ",m[6]," ",m[7]," "]});return _},{data:p,setData:u}=(0,o.f)(),m=p.key_word;if(""===m)return"";let x=e.empresaData.tags_seo,f=e.empresaData.frases_seo,b=e.empresaData.palavras_chave_word;c(x.slice(0,3));let y=e.empresaData.word_text_frases,g=y.filter(e=>e.text.toLowerCase()===m.toLowerCase()),j="";j=0===g.length?y[0].frase_radom.frases:g[0].frase_radom.frases;let w=(0,s.jsxs)("div",{children:[(0,s.jsxs)("h3",{children:[p.key_word," ",p.bairro," EM ",p.city," ",(0,s.jsx)(i.Z,{})]}),(0,s.jsx)("br",{}),(0,s.jsxs)("h6",{className:"",style:{"text-align":"left",color:"#a1a1a1"},children:[(0,s.jsx)("b",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),h(j,x,f,b)," ",(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),p.key_word," EM ",p.bairro,p.city,h(j,x,f,b)," "]}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{}),(0,s.jsx)("br",{})]});return w}},312:function(e,t,a){a.d(t,{Z:function(){return p}});var s=a(5893),o=a(682),r=a(9368),l=a(9414),i=a(909),n=a(7294),c=a(6916),d=a(1163),h=e=>{let{linkDirecionamento:t="https://anuncie-arcaweb-buscas.arcaweb.com.br/",textButton:a="ANUNCIE AQUI"}=e,o=(0,d.useRouter)();return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("button",{type:"button",onClick:()=>{o.push(t)},title:"Anuncie na Arcaweb Buscas",className:"pulse-button   custom-button-laranj-amarelo ",children:a})})},p=e=>{let t;let[a,d]=(0,n.useState)(!1),{data:p,setData:u}=(0,c.f)();if((0,n.useEffect)(()=>{let e=()=>{window.scrollY>100?d(!0):d(!1)};return window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)}},[]),null==p.cp_nome_empresa)return;let m=e.empresaData;e.empresaData.hostname;let x=m.s3pasta,f=m.img_principais;f.forEach((e,a)=>{e.logo&&(t=e.logo)});let b="https://usc1.contabostorage.com/ba7230afe8964c26882852a6b422ec26:arcawebbuscas/"+x+"/"+t,y=e.empresaData.cp_telefone;console.log(e.empresaData.user_dominio);let g=e.empresaData.user_dominio;return(0,s.jsx)(l.Z,{expand:"lg",className:"bg-body-tertiary justify-content-center ".concat(a?"fixed-top":""),style:{"border-bottom":"1px solid #b5b6b759"},children:(0,s.jsxs)(o.Z,{children:[(0,s.jsx)(l.Z.Brand,{href:"/",children:(0,s.jsx)("img",{src:"".concat(b),style:{width:"70%"},alt:"".concat(p.key_word," EM ").concat(p.bairro," ").concat(p.city,"  ").concat(p.tel," | ").concat(p.uf,"  ").concat(p.cp_nome_empresa),title:"".concat(p.key_word," EM ").concat(p.bairro," ").concat(p.city,"  ").concat(p.tel," | ").concat(p.uf,"  ").concat(p.cp_nome_empresa," ")})}),(0,s.jsx)(l.Z.Toggle,{"aria-controls":"basic-navbar-nav"}),(0,s.jsx)(l.Z.Collapse,{id:"basic-navbar-nav",children:(0,s.jsxs)(r.Z,{className:"me-auto",children:[(0,s.jsx)(r.Z.Link,{href:"/",children:"IN\xcdCIO"}),(0,s.jsx)(r.Z.Link,{href:"/servicos-produtos",children:(0,s.jsx)("b",{children:"LOJA VIRTUAL / SERVI\xc7OS"})}),(0,s.jsxs)(i.Z,{title:"ARCAWEB",id:"basic-nav-dropdown",children:[(0,s.jsx)(i.Z.Item,{href:"https://buscas.arcaweb.com.br/".concat(g),children:"PAGINA NO AW BUSCAS"}),(0,s.jsx)(i.Z.Item,{href:"https://buscas.arcaweb.com.br/",children:"ARCAWEB BUSCAS"}),(0,s.jsx)(i.Z.Item,{href:"#action/3.1",children:"ANUNCIE AQUI"}),(0,s.jsx)(i.Z.Divider,{}),(0,s.jsx)(i.Z.Item,{href:"https://dashloginseo.arcaweb.com.br/login",children:"LOGIN ARCAWEB BUSCAS"}),(0,s.jsx)(i.Z.Item,{href:"/parceiros-arcaweb",children:"PARCEIROS ARCAWEB BUSCAS"})]})]})}),(0,s.jsxs)("div",{className:"",children:[(0,s.jsxs)("b",{children:[y," (Zap)"]}),(0,s.jsx)(h,{})]})]})})}},5855:function(e,t,a){a.d(t,{Z:function(){return j}});var s=a(5893),o=a(6916),r=a(7294),l=a(909),i=a(4020),n=a(1163);function c(e){return new i.U().Low_RemActs_format(e)}var d=e=>{let{empresaData:t}=e,[a,i]=(0,r.useState)(),{data:d,setData:h}=(0,o.f)(),p=(0,n.useRouter)(),{slug:u,login:m,url:x}=p.query,f=e=>{p.push("/"+e)},b=e=>{h(t=>({...t,key_word:e}));let t=c("".concat(e," em ").concat(d.city," ").concat(d.uf," brasil"));f(t)},y=null!==t?t:(0,s.jsx)("div",{}),g=(()=>{let e;let a=c(d.key_word),s=d.key_word.split("EM")[0].trim(),o=c(s);for(let s=0;s<t.length;s++){let r=c(t[s]);if(a===r){e=t[s];break}if(r===o){e=r;break}}if(void 0!==e){let t=e.replaceAll("-"," ").toUpperCase();return console.log(t),t}})(),j=y.map((e,t)=>(0,s.jsx)(l.Z.Item,{href:c("".concat(e," em ").concat(d.city," ").concat(d.uf," brasil")),title:"".concat(""!==d.key_word?d.key_word.toUpperCase():y[0].toUpperCase()),alt:"".concat(e),onClick:t=>{t.preventDefault(),b(e.toUpperCase())},children:e.toUpperCase()},t));return(0,s.jsx)("div",{children:(0,s.jsx)(l.Z,{title:"".concat(""!==d.key_word?g:y[0].toUpperCase()),id:"basic-nav-dropdown",children:j})})};function h(e){return new i.U().Low_RemActs_format(e)}var p=e=>{let{empresaData:t}=e,{data:a,setData:i}=(0,o.f)(),c=(0,n.useRouter)(),d=e=>{c.push(e)},p=e=>{i(t=>({...t,city:e}));let t="/"+h("".concat(a.key_word," em ").concat(e," ").concat(a.uf," brasil"));d(t)};if(""===a.uf)return"<div></div>";let u=null!==t?t:(0,s.jsx)("div",{}),m=u.filter(e=>e.state===a.uf);if(0===m.length)return(0,s.jsx)("div",{});let x=m[0].cities;console.log(x),console.log(a.city),(0,r.useEffect)(()=>{(void 0===a.city||null===a.city||""===a.city)&&i({...a,city:x[0].name.toUpperCase()})},[]);let f=x.map((e,t)=>(0,s.jsx)(l.Z.Item,{href:h("".concat(a.key_word," em ").concat(e.name," ").concat(a.uf," brasil")),title:"TESTE",alt:"".concat(e.name),onClick:t=>{t.preventDefault(),p(e.name.toUpperCase())},children:e.name.toUpperCase()},t));return(0,s.jsx)("div",{children:(0,s.jsx)(l.Z,{title:"".concat(""!==a.city?a.city:x[0].name.toUpperCase()),id:"basic-nav-dropdown",children:f})})};function u(e){return new i.U().Low_RemActs_format(e)}var m=e=>{let{empresaData:t}=e,{data:a,setData:i}=(0,o.f)(),c=(0,n.useRouter)(),d=e=>{c.push(e)},h=(e,t,s)=>{i(t=>({...t,uf:e})),i(e=>({...e,city:t}));let o=u("".concat(a.key_word," em ").concat(t," ").concat(e," brasil"));d(o)},p=null!==t?t:(0,s.jsx)("div",{}),[m,x]=(0,r.useState)([p[0].state]),f=p.map((e,t)=>(0,s.jsx)(l.Z.Item,{href:u("".concat(a.key_word," em ").concat(e.cities[0].name.toUpperCase()," ").concat(e.state," brasil")),title:"".concat(""!==a.uf?a.uf:p[0].state),alt:"".concat(e.state),onClick:t=>{t.preventDefault(),h(e.state,e.cities[0].name.toUpperCase())},children:e.state.toUpperCase()},t));return(0,s.jsx)("div",{children:(0,s.jsx)(l.Z,{title:"".concat(""!==a.uf?a.uf:p[0].state),id:"basic-nav-dropdown",children:f})})},x=a(7952),f=e=>{let t,{empresaData:a}=e,[l,c]=(0,r.useState)(null),{data:d,setData:h}=(0,o.f)(),p=d.city,u=d.uf,m=e=>f=(0,s.jsx)("div",{className:"nav-link",children:e}),f="",b=(0,n.useRouter)(),{slug:y}=b.query;if(void 0!==y){let e=y[0].split("-"),a=e.length-1,s=e[a];if("r"===s&&""!==u&&""!==p){let e;let a=b.asPath,s=a.split("-"),o=0;s.map((t,a)=>{"bairro"==t&&0==o&&(e="-bairro-",o=1),"em"==t&&0==o&&(e="-em-",o=1)});let r=a.split(e)[1],n=r.split("-em-")[0],y=async()=>{try{let e=await (0,x.Z)({uf:u,city:p});c(e)}catch(e){console.error("Erro ao obter dados dos distritos:",e)}};if(y(),null===l)return;0!==(t=JSON.parse(l)).length&&t.map((e,t)=>{if(""!==e.bairro){var a;a=e.bairro,new i.U().Low_RemActs_format(a)===n&&(""===d.bairro&&h({...d,bairro:e.bairro.toUpperCase()}),d.bairro=e.bairro.toUpperCase(),f=m(e.bairro.toUpperCase()))}})}}return(0,s.jsx)("div",{children:f})},b=a(682),y=a(9368),g=a(9414),j=e=>{let t,{empresaData:a}=e,{data:r,setData:i}=(0,o.f)(),c=(0,n.useRouter)(),{slug:h}=c.query;return void 0===h&&(void 0===r.uf||null===r.uf||""===r.uf)&&i({...r,uf:a.anuncio_loc[0].state}),(void 0===r.cp_nome_empresa||null===r.cp_nome_empresa||""===r.cp_nome_empresa)&&i({...r,cp_nome_empresa:a.cp_nome_empresa.toUpperCase()}),a&&(r.tel=a.cp_telefone,t=a.cp_telefone,a.cp_number_whatsapp),(0,s.jsxs)(g.Z,{expand:"lg",className:"bg-body-tertiary",children:[(0,s.jsxs)(b.Z,{children:[(0,s.jsx)(g.Z.Toggle,{"aria-controls":"basic-navbar-nav"}),(0,s.jsx)(g.Z.Collapse,{id:"basic-navbar-nav",children:(0,s.jsxs)(y.Z,{className:"me-auto",children:[(0,s.jsx)(y.Z.Link,{href:"#home",children:"Servi\xe7os"}),(0,s.jsx)(y.Z.Link,{href:"#link",children:"Or\xe7amentos"}),(0,s.jsx)(l.Z,{title:"BRASIL",id:"basic-nav-dropdown",children:(0,s.jsx)(l.Z.Item,{href:"#Brasil",children:"BRASIL"})}),(0,s.jsx)(m,{empresaData:a.anuncio_loc}),(0,s.jsx)(p,{empresaData:a.anuncio_loc}),(0,s.jsx)(d,{empresaData:a.palavras_chave_word}),(0,s.jsx)(f,{empresaData:a.palavras_chave_word}),(0,s.jsx)(y.Z.Link,{href:"",className:"d-none d-md-block",children:(0,s.jsxs)("b",{children:[t," (Zap)"]})})]})})]}),(0,s.jsx)("div",{className:"d-md-none",children:(0,s.jsxs)("b",{children:[r.tel," (Zap)"]})})]})}},5203:function(e,t,a){var s=a(6916);a(7294);var o=a(1163),r=a(4020);class l{getDados(){return this.empresaData}getUrlParams(){let{asPath:e,query:t}=this.router;return(console.log(this.router),"/servicos-produtos"===e||"/"===e||t.id)?{url:""}:{url:t.slug[0]}}verificaUrl_existe(){let e=this.getUrlParams(),t=e.url;return void 0!==t&&(console.log(t),t)}pegar_final_da_url(){let e=this.verificaUrl_existe();return e?e.split("-").pop():null}definir_final_url(){let e=this.data.type_url;console.log(e);let t=this.verificaUrl_existe();if((null==e||""===e&&!1===t)&&""===this.data.type_url)return(void 0==this.data.type_url||null===this.data.type_url||""===this.data.type_url)&&this.setData({...this.data,type_url:"brasil"}),!0;switch(this.pegar_final_da_url()){case"brasil":return(void 0==this.data.type_url||null===this.data.type_url||""===this.data.type_url)&&this.setData({...this.data,type_url:"brasil"}),!0;case"b":return(void 0==this.data.type_url||null===this.data.type_url||""===this.data.type_url)&&this.setData({...this.data,type_url:"b"}),!0;case"r":return(void 0==this.data.type_url||null===this.data.type_url||""===this.data.type_url)&&this.setData({...this.data,type_url:"r"}),!0;default:return(void 0==this.data.type_url||null===this.data.type_url||""===this.data.type_url)&&this.setData({...this.data,type_url:"brasil"}),console.log("Url n\xe3o existe. ok"),!1}}shuffleArray(e){for(let t=e.length-1;t>0;t--){let a=Math.floor(Math.random()*(t+1));[e[t],e[a]]=[e[a],e[t]]}return e}fomartString(e){return new r.U().Low_RemActs_format(e)}def_word_primary(){let e=this.getDados();this.data.key_word;let t=e.palavras_chave_word[0].replaceAll("-"," ").toUpperCase();(void 0===this.data.key_word||null===this.data.key_word||""===this.data.key_word)&&this.setData({...this.data,key_word:t})}def_word_aleatorio(){let e=this.getDados(),t=e.palavras_chave_word;this.shuffleArray(t),this.data.key_word;let a=t[0].replaceAll("-"," ").toUpperCase();(void 0===this.data.key_word||null===this.data.key_word||""===this.data.key_word)&&this.setData({...this.data,key_word:a})}definir_word_text(){let e=this.verificaUrl_existe();console.log(e);let t=this.getDados(),a=t.palavras_chave_word;if(console.log(a),e){let e;let s=this.getUrlParams(),o=s.url,r=o.split("-em-")[0].replaceAll("-"," "),l=o.split("-em-").length-1;a=a.map(e=>this.fomartString(e).replaceAll("-"," ")),r=r.split(" bairro ")[0];let i=a.filter(e=>e.toLowerCase()===r.toLowerCase());if(console.log(i.length),0===i.length)return void 0===this.data.key_word||null===this.data.key_word||""===this.data.key_word?(this.def_word_primary(),!0):void 0;let n=a.findIndex(e=>e.toLowerCase()===r.toLowerCase());if(1===l&&console.log(e=(e=t.palavras_chave_word[n].toUpperCase()).split(" BAIRRO ")[0]),l>=1){let[t,a]=o.split(/-em-(?!.*-em-)/);e=(e=t.replaceAll("-"," ").toUpperCase()).split(" BAIRRO ")[0]}return console.log(this.data.key_word),console.log(e),(void 0===this.data.key_word||null===this.data.key_word||""===this.data.key_word)&&(console.log(e),this.setData({...this.data,key_word:e})),!0}if(void 0===this.data.key_word||null===this.data.key_word||""===this.data.key_word)return this.def_word_primary(),!0}define_uf(e){let t=this.verificaUrl_existe();if(t){let e,t,a,s;let o=this.getUrlParams(),r=o.url,[l,i]=r.split(/-em-(?!.*-em-)/);this.pegar_final_da_url();let n=i.split("-"),c=n.length;switch(this.pegar_final_da_url()){case"brasil":return t=n[e=c-2],s=n[e].toUpperCase(),a=i.split("-"+t+"-")[0].toUpperCase().replaceAll("-"," "),(void 0==this.data.uf||null===this.data.uf||""===this.data.uf)&&this.setData({...this.data,uf:s}),(void 0==this.data.city||null===this.data.city||""===this.data.city)&&this.setData({...this.data,city:a}),!0;case"b":case"r":return t=n[e=c-3],s=n[e].toUpperCase(),a=i.split("-"+t+"-")[0].toUpperCase().replaceAll("-"," "),(void 0==this.data.uf||null===this.data.uf||""===this.data.uf)&&this.setData({...this.data,uf:s}),(void 0==this.data.city||null===this.data.city||""===this.data.city)&&this.setData({...this.data,city:a}),!0;default:return console.log("Url n\xe3o existe. define_uf linha 319"),!1}}else{let t=e.anuncio_loc[0].cities[0].name.toUpperCase().replaceAll("-"," "),a=e.anuncio_loc[0].state.toUpperCase();(void 0==this.data.uf||null===this.data.uf||""===this.data.uf)&&this.setData({...this.data,uf:a}),(void 0==this.data.city||null===this.data.city||""===this.data.city)&&this.setData({...this.data,city:t}),console.log("data city:"+this.data.city),console.log("URL N\xc3O EXISTE, AO DEFINIR define_uf  ")}}constructor(e,t,a,s){this.empresaData=e,this.router=t,this.data=a,this.setData=s,"function"!=typeof this.setData&&console.error("setData n\xe3o \xe9 uma fun\xe7\xe3o")}}t.Z=function(e){let t=(0,o.useRouter)(),{data:a,setData:r}=(0,s.f)(),i=e.empresaData,n=new l(i,t,a,r);n.getDados();let c=n.definir_final_url();console.log(c);let d=n.definir_word_text();return d&&(console.log(d),n.define_uf(i)),null}},4020:function(e,t,a){a.d(t,{U:function(){return s}});class s{FormatString(e){let t=e.trim(),a=t.replace(/\s+/g,"-"),s=a.replace(/\s+/g,"");return s}RemoveSpecialChars(e){let t=e.normalize("NFD").replace(/[\u0300-\u036f]/g,""),a=t.replace(/[^a-zA-Z0-9\s]/g,"");return a}Low_RemActs_format(e){if(void 0!==e){let t=e.toLowerCase(),a=this.RemoveSpecialChars(t),s=this.FormatString(a);return s}}}}}]);