1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[108,5346,7727,9553],{934:o=>{o.exports={baloes:"Botoes_baloes__NWsVo",baloes_right:"Botoes_baloes_right__9ZKKx",icon_balao:"Botoes_icon_balao__d1u0v",full:"Botoes_full__JVxjX",balao:"Botoes_balao__Dz5VJ",balao_decorar:"Botoes_balao_decorar__gbA7f",decorarSheen:"Botoes_decorarSheen__F6PSd",icon_decorar:"Botoes_icon_decorar__jDACd",balao_redondo:"Botoes_balao_redondo__mJc8s",selecionado:"Botoes_selecionado__sTsMj"}},3036:(o,e,l)=>{"use strict";l.d(e,{_5:()=>a,jy:()=>s,k0:()=>i});let t=new Set([1939]),a=(o,e)=>t.has(Number(null==o?void 0:o.id))&&(!(null==e?void 0:e.mostrar_endereco)||!!(null==o?void 0:o.ocultar_endereco)),n=o=>{let e=0x811c9dc5;for(let l=0;l<o.length;l++)e^=o.charCodeAt(l),e=Math.imul(e,0x1000193);return(e>>>0)/0x100000000},r=(o,e,l,t)=>[o+l/111320,e+t/(111320*Math.cos(o*Math.PI/180))],i=(o,e,l)=>{let t=2*n("ang:".concat(l))*Math.PI,a=100+150*n("dist:".concat(l));return r(o,e,Math.cos(t)*a,Math.sin(t)*a)},s=function(o,e){let l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:500,t=[];for(let a=0;a<=64;a++){let n=a/64*2*Math.PI,[i,s]=r(o,e,Math.cos(n)*l,Math.sin(n)*l);t.push([s,i])}return{type:"Feature",properties:{},geometry:{type:"Polygon",coordinates:[t]}}}},30108:(o,e,l)=>{"use strict";l.d(e,{k5:()=>s});var t=l(14232),a={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},n=t.createContext&&t.createContext(a),r=function(){return(r=Object.assign||function(o){for(var e,l=1,t=arguments.length;l<t;l++)for(var a in e=arguments[l])Object.prototype.hasOwnProperty.call(e,a)&&(o[a]=e[a]);return o}).apply(this,arguments)},i=function(o,e){var l={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&0>e.indexOf(t)&&(l[t]=o[t]);if(null!=o&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,t=Object.getOwnPropertySymbols(o);a<t.length;a++)0>e.indexOf(t[a])&&Object.prototype.propertyIsEnumerable.call(o,t[a])&&(l[t[a]]=o[t[a]]);return l};function s(o){return function(e){return t.createElement(c,r({attr:r({},o.attr)},e),function o(e){return e&&e.map(function(e,l){return t.createElement(e.tag,r({key:l},e.attr),o(e.child))})}(o.child))}}function c(o){var e=function(e){var l,a=o.attr,n=o.size,s=o.title,c=i(o,["attr","size","title"]),d=n||e.size||"1em";return e.className&&(l=e.className),o.className&&(l=(l?l+" ":"")+o.className),t.createElement("svg",r({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,a,c,{className:l,style:r(r({color:o.color||e.color},e.style),o.style),height:d,width:d,xmlns:"http://www.w3.org/2000/svg"}),s&&t.createElement("title",null,s),o.children)};return void 0!==n?t.createElement(n.Consumer,null,function(o){return e(o)}):e(a)}},53221:(o,e,l)=>{"use strict";l.r(e),l.d(e,{__N_SSP:()=>c,default:()=>d});var t=l(37876);l(14232);var a=l(5076),n=l(98775),r=l(68252),i=l(934),s=l.n(i),c=!0;let d=o=>{let{detailsProperties:e,favorito:l}=o,{delete_favorito:i,include_favorito:c}=(0,n.As)(),d=async()=>{var o,l,t,a;let n="".concat(null==e?void 0:null===(o=e.tipo)||void 0===o?void 0:o.nome," ").concat((null==e?void 0:e.area_privativa)>0?" com "+(0,r.MN)(Number(null==e?void 0:e.area_privativa))+" m\xb2 privativos, ":(null==e?void 0:e.area_total)>0?" com "+(0,r.MN)(Number(null==e?void 0:e.area_total))+" m\xb2 de \xe1rea total, ":(null==e?void 0:e.terreno)>0?" com "+(0,r.MN)(Number(null==e?void 0:e.terreno))+" m\xb2 de \xe1rea terreno, ":"").concat((null==e?void 0:e.dormitorios)>0?(null==e?void 0:e.dormitorios)>1?(null==e?void 0:e.dormitorios)+" quartos ":"1 quarto ":"").concat((null==e?void 0:e.suites)>0?(null==e?void 0:e.suites)>1?"e "+(null==e?void 0:e.suites)+" su\xedtes ":"e 1 su\xedte ":"","em ").concat(null==e?void 0:null===(l=e.cidade)||void 0===l?void 0:l.nome).replace(/\s*\n\s*/g," "),i={title:"".concat(null==e?void 0:null===(t=e.tipo)||void 0===t?void 0:t.nome," ").concat("em "+(null==e?void 0:null===(a=e.cidade)||void 0===a?void 0:a.nome)),text:n,url:window.location.href};if(navigator.share)try{await navigator.share(i),console.log("Compartilhado com sucesso!")}catch(o){console.error("Erro ao compartilhar:",o)}else alert("Compartilhamento n\xe3o suportado neste navegador. URL copiada para a \xe1rea de transfer\xeancia!"),navigator.clipboard.writeText(i.url)};return(0,t.jsxs)("ul",{className:s().baloes_right,children:[(0,t.jsx)("li",{children:(0,t.jsx)("button",{className:s().balao_redondo,children:(0,t.jsx)(a.eb3,{onClick:d,className:s().icon_balao,style:{margin:0,fontSize:24,marginTop:5}})})}),l.indexOf(null==e?void 0:e.id)>
1=0?(0,t.jsx)("li",{className:s().adjust_favorito,children:(0,t.jsx)("div",{className:s().favorito,children:(0,t.jsx)("button",{className:s().balao_redondo,children:(0,t.jsx)(a.Mbv,{onClick:()=>i(null==e?void 0:e.id),className:s().icon_balao,style:{margin:0,fontSize:24,marginTop:5,color:"red"}})})})},"favoritos"):(0,t.jsx)("li",{className:s().adjust_favorito,children:(0,t.jsx)("div",{className:s().favorito,children:(0,t.jsx)("button",{className:s().balao_redondo,children:(0,t.jsx)(a.sOK,{onClick:()=>c(null==e?void 0:e.id),className:s().icon_balao,style:{margin:0,fontSize:24,marginTop:5}})})})},"incluir_favoritos")]})}},78765:(o,e,l)=>{"use strict";l.d(e,{IV:()=>i,J1:()=>u,_8:()=>v,bc:()=>d,fP:()=>n,ro:()=>s,tq:()=>a});var t=l(14232);let a="decorar:abrir",n="decorar:teaser",r="decorar:status",i=(o,e)=>{try{window.dispatchEvent(new CustomEvent(a,{detail:{fotoUrl:o,estilo:null!=e?e:null}}))}catch(o){}},s=o=>{try{window.dispatchEvent(new CustomEvent(n,{detail:o||{}}))}catch(o){}},c=()=>({ativo:!!window.__decoradorAtivo,v2:!!window.__decoradorV2}),d=function(o){let e=!(arguments.length>1)||void 0===arguments[1]||arguments[1];window.__decoradorAtivo=o,window.__decoradorV2=e;try{window.dispatchEvent(new CustomEvent(r,{detail:{ativo:o,v2:e}}))}catch(o){}},u=()=>{let[o,e]=(0,t.useState)({ativo:!1,v2:!1});return(0,t.useEffect)(()=>{e(c());let o=o=>{let l=null==o?void 0:o.detail;e({ativo:!!(null==l?void 0:l.ativo),v2:!!(null==l?void 0:l.v2)})};return window.addEventListener(r,o),()=>window.removeEventListener(r,o)},[]),o},v=()=>u().ativo},92403:(o,e,l)=>{"use strict";l.r(e),l.d(e,{__N_SSP:()=>m,default:()=>_});var t=l(37876);l(14232);var a=l(5076),n=l(78765),r=l(93655),i=l(3036),s=l(934),c=l.n(s),d=l(53221);let u=new Set([2639,1913,2165]),v=new Set([1913]);var m=!0;let _=o=>{var e,l,s,m,_,f,h;let{site:b,detailsProperties:p,setOpenMapa:N,setOpenStreet:g,setOpenOption:w,openOption:x,favorito:j,setFavorito:y}=o,k=(null==p?void 0:p.usa_fotos_empreendimento)?(null!==(_=null==p?void 0:null===(l=p.empreendimento)||void 0===l?void 0:null===(e=l.fotos)||void 0===e?void 0:e.length)&&void 0!==_?_:0)+(null!==(f=null==p?void 0:null===(s=p.fotos)||void 0===s?void 0:s.length)&&void 0!==f?f:0):null!==(h=null==p?void 0:null===(m=p.fotos)||void 0===m?void 0:m.length)&&void 0!==h?h:0,{ativo:C,v2:E}=(0,n.J1)(),M=null!=(0,r.M)(null==p?void 0:p.latitude_longitude),S=!(null==p?void 0:p.mostrar_endereco),O=S&&u.has(Number(null==b?void 0:b.id))||(0,i._5)(b,p),P=S&&v.has(Number(null==b?void 0:b.id));return(0,t.jsxs)("div",{className:c().full,children:[(0,t.jsxs)("ul",{className:c().baloes,children:[(0,t.jsx)("li",{children:(0,t.jsxs)("button",{onClick:()=>w(1),className:1==x?c().selecionado:c().balao,style:(null==b?void 0:b.cor2)!="#ffffff"&&1==x?{backgroundColor:null==b?void 0:b.cor2}:{},children:[(0,t.jsx)(a.T0M,{className:c().icon_balao}),k," Fotos"]})},"fotos"),C&&!E?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{type:"button",className:"".concat(c().balao," ").concat(c().balao_decorar),title:"Decore qualquer foto deste im\xf3vel com IA","aria-label":"Decore qualquer foto deste im\xf3vel com IA",onClick:()=>(0,n.IV)(),children:[(0,t.jsx)("span",{className:c().icon_decorar,"aria-hidden":"true",children:"â¨"}),"Decorar"]})},"decorar"):null,M&&(null==b?void 0:b.mostrar_mapa)&&!P?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{className:2==x?c().selecionado:c().balao,style:(null==b?void 0:b.cor2)!="#ffffff"&&2==x?{backgroundColor:null==b?void 0:b.cor2}:{},onClick:()=>{w(0),N(1)},children:[(0,t.jsx)(a.vq8,{className:c().icon_balao}),"Mapa"]})},"mapa"):null,M&&(null==b?void 0:b.mostrar_mapa)&&!O?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{className:5==x?c().selecionado:c().balao,style:(null==b?void 0:b.cor2)!="#ffffff"&&2==x?{backgroundColor:null==b?void 0:b.cor2}:{},onClick:()=>{w(0),g(1)},children:[(0,t.jsx)(a.vq8,{className:c().icon_balao}),"Rua"]})},"mapaStreet"):null,(null==p?void 0:p.link_video)&&((null==p?void 0:p.link_video)!="https://youtu.be/EngkU-Vcp2Q"&&(null==p?void 0:p.link_video)!="https://www.youtube.com/watch?v=EngkU-Vcp2Q&feature=youtu.be"||(null==b?void 0:b.id)!="2059")?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{style:(null==b?void 0:b.cor2)!="#ffffff"&&3==x?{backgroundColor:null==b?void 0:b.cor2}:{},onClick:()=>w(3),className:3==x?c().selecionado:c().balao,children:[(0,t.jsx)(a.UUG,{className:c().icon_balao}),"V\xeddeo"]})},"video"):null,(null==p?void 0:p.tour360)?(0,t.jsx)("li",{children:(0,t.jsxs)("button",{className:4==x?c().selecionado:c().balao,style:(null==b?void 0:b.cor2)!="#ffffff"&&4==x?{backgroundColor:null==b?void 0:b.cor2}:{},onClick:()=>w(4),children:[(0,t.jsx)(a.EEI,{className:c().icon_balao}),"Tour 360"]})},"trou360"):null]}),x>=1&&2!=x?(0,t.jsx)(d.default,{favorito:j,detailsProperties:p}):null]})}},93655:(o,e,l)=>{"use strict";l.d(e,{M:()=>t});let t=o=>{var e;let l=String(null!=o?o:"").trim();if(!l)return null;let t=null===(e=l.replace(/point/gi,"").match(/-?\d+(?:[.,]\d+)?/g))||void 0===e?void 0:e.map(o=>Number(o.replace(",",".")));if(!t||t.length<2)return null;let a=Number(t[0]),n=Number(t[1]);if(!Number.isFinite(a)||!Number.isFinite(n))return null;if(Math.abs(a)>90&&90>=Math.abs(n)){let o=a;a=n,n=o}return Math.abs(a)>90||Math.abs(n)>180||0===a&&0===n?null:[a,n]}},97710:(o,e,l)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/imoveis/components/pieces/properties/botoes/Botoes",function(){return l(92403)}])}},o=>{var e=e=>o(o.s=e);o.O(0,[3371,636,6593,8792],()=>e(97710)),_N_E=o.O()}]); 2//# sourceMappingURL=Botoes-9011a961a2273d9c.js.map
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.