"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5188],{942:function(e,l,a){a.d(l,{BannerCarousel:function(){return o}});var t=a(5862),n=a(4231),r=a(5193),s=a(6444),i=a(1957);function o(e){let{brand:l,properties:a}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)(r.tq,{loop:!0,slidesPerView:1,spaceBetween:4,autoplay:{delay:5e3,pauseOnMouseEnter:!0},speed:1e3,modules:[s.W_,s.pt,s.s5],navigation:!0,className:"w-full h-[430px]",children:a.map((e,a)=>{var s,o,d;return(0,t.jsxs)(r.o5,{className:"relative flex items-center flex-wrap h-[430px] transition-colors z-50 bg-cover bg-no-repeat bg-center",children:[(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-cover bg-no-repeat bg-center bg-fixed",style:{backgroundImage:"url(".concat(e.FotoDestaque,")")}}),(0,t.jsx)("div",{className:"w-full md:max-w-[1250px] mx-auto px-4 md:px-0",children:(0,t.jsxs)("div",{className:"absolute -translate-y-1/2 top-2/4 mx-2 md:mx-0 w-[90%]",children:[(0,t.jsxs)("div",{className:"flex flex-row",children:[(null==e?void 0:null===(s=e.Status)||void 0===s?void 0:s.toLowerCase())==="aluguel"&&(0,t.jsx)("div",{className:"flex items-center bg-brand text-white py-3 px-4",children:(0,t.jsxs)("span",{className:"block text-sm font-bold leading-3",children:["Aluguel ",(0,i.xG)(Number((null==e?void 0:e.ValorLocacao)||"0"))]})}),(null==e?void 0:null===(o=e.Status)||void 0===o?void 0:o.toLowerCase())==="venda"&&(0,t.jsx)("div",{className:"flex items-center bg-brand text-white py-3 px-4",children:(0,t.jsxs)("span",{className:"block text-sm font-bold leading-3",children:["Venda ",(0,i.xG)(Number((null==e?void 0:e.ValorVenda)||"0"))]})}),(null==e?void 0:null===(d=e.Status)||void 0===d?void 0:d.toLowerCase())==="venda e aluguel"&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex items-center bg-brand text-white py-3 px-4",children:(0,t.jsxs)("span",{className:"block text-sm font-bold leading-3",children:["Aluguel ",(0,i.xG)(Number((null==e?void 0:e.ValorLocacao)||"0"))]})}),(0,t.jsx)("div",{className:"flex items-center bg-brand text-white py-3 px-4",children:(0,t.jsxs)("span",{className:"block text-sm font-bold leading-3",children:["Venda ",(0,i.xG)(Number((null==e?void 0:e.ValorVenda)||"0"))]})})]}),(0,t.jsx)(n.default,{href:"/imovel/".concat((0,i.gf)({property:e})),className:"flex items-center bg-[#333333] text-white py-3 px-4",children:(0,t.jsx)("span",{className:"block text-sm font-bold leading-3",children:"Ver Detalhes"})})]}),(0,t.jsx)("div",{className:"w-full md:w-[630px] h-28 bg-white flex flex-col justify-center gap-1 px-6",children:(0,t.jsxs)("span",{className:"text-xl md:text-2xl font-bold leading-6 line-clamp-1",children:[l.showShoppingDistrict?null==e?void 0:e.BairroComercial:null==e?void 0:e.Bairro," - ",e.Cidade," - ",e.UF]})})]})})]},e.Codigo)})})})}a(3930),a(3800)},7397:function(e,l,a){a.d(l,{BannerClassical:function(){return d}});var t=a(5862),n=a(6850),r=a(6206),s=a(9010),i=a(5627);let o=e=>{let{src:l,width:a,quality:t}=e;return"".concat("https://ppbxdsyojwqujdrmnxdv.storage.sa-east-1.nhost.run/v1/files","/").concat(l,"?w=").concat(a,"&q=").concat(t||75)};function d(e){var l,a;let{brand:d}=e,c=d.homeHeaderBannerHeroText,u=d.homeHeaderBannerImageFileId,x=null!==(a=null==d?void 0:null===(l=d.links)||void 0===l?void 0:l.filter(e=>e.highlight))&&void 0!==a?a:[];return(0,t.jsx)("section",{className:"w-full",children:(0,t.jsxs)("div",{className:"relative pt-32 pb-8 lg:pt-8 px-4 md:px-12 lg:px-20 lg:h-[460px] bg-cover overflow-hidden flex items-center justify-center",children:[(0,t.jsxs)("div",{className:"h-full w-full absolute top-0 left-0",children:[u&&(0,t.jsx)(n.default,{src:u,loader:o,alt:"Background image",width:400,height:400,quality:95,sizes:"100vw",priority:!0,className:"h-full w-full object-cover",style:{position:"absolute",height:"100%",width:"100%",left:"0",top:"0",right:"0",bottom:"0",color:"transparent"}}),(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-black opacity-30"})]}),(0,t.jsx)("div",{className:"flex relative flex-col w-full h-full items-start justify-center max-w-5xl",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h1",{className:"text-3xl lg:text-5xl text-white text-center font-bold mb-4 lg:mb-8",children:c}),(0,t.jsx)(i.S,{}),(0,t.jsx)("div",{className:"flex flex-row flex-wrap justify-center items-center w-full gap-1",children:x.length>0&&(0,t.jsx)(t.Fragment,{children:x.map((e,l)=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",className:(0,r.cn)((0,s.d)({variant:"default"}),"text-white bg-brand rounded-3xl hover:bg-brand hover:opacity-80"),children:e.label},l))})})]})})]})})}},7049:function(e,l,a){a.d(l,{BannerModern:function(){return o}});var t=a(5862),n=a(6850),r=a(6206),s=a(9010),i=a(5627);function o(e){var l,a;let{brand:o}=e,d=o.homeHeaderBannerHeroText,c=o.homeHeaderBannerImageFileId,u="".concat("https://ppbxdsyojwqujdrmnxdv.storage.sa-east-1.nhost.run/v1/files","/").concat(c),x=null!==(a=null==o?void 0:null===(l=o.links)||void 0===l?void 0:l.filter(e=>e.highlight))&&void 0!==a?a:[];return(0,t.jsx)("section",{className:"md:container md:mx-auto",children:(0,t.jsxs)("div",{className:"relative pt-32 pb-8 lg:pt-8 px-4 md:px-12 lg:px-20 lg:h-[460px] bg-cover md:rounded-3xl overflow-hidden flex items-center justify-center",children:[(0,t.jsxs)("div",{className:"h-full w-full absolute top-0 left-0",children:[c&&(0,t.jsx)(n.default,{src:u,alt:"Background image",width:1336,height:457,quality:95,sizes:"(max-width: 1536px) 80vw, (max-width: 640px) 100vw, 50vw",priority:!0,className:"h-full w-full object-cover text-transparent"}),(0,t.jsx)("div",{className:"absolute top-0 left-0 w-full h-full bg-black opacity-30"})]}),(0,t.jsx)("div",{className:"flex relative flex-col w-full h-full items-start justify-center max-w-5xl",children:(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("h1",{className:"text-3xl lg:text-5xl text-white text-center font-bold mb-4 lg:mb-8",children:d}),(0,t.jsx)(i.S,{}),(0,t.jsx)("div",{className:"flex flex-row flex-wrap justify-center items-center w-full gap-1 mt-4",children:x.length>0&&(0,t.jsx)(t.Fragment,{children:x.map((e,l)=>(0,t.jsx)("a",{href:e.href,target:"_blank",rel:"noreferrer",className:(0,r.cn)((0,s.d)({variant:"default"}),"text-white bg-brand rounded-3xl hover:bg-brand hover:opacity-80"),children:e.label},l))})})]})})]})})}},5627:function(e,l,a){a.d(l,{S:function(){return p}});var t=a(5862),n=a(4231),r=a(6206),s=a(9194),i=a(3606),o=a(1259),d=a(8161),c=a(4714),u=a(598),x=a(7058),m=a(2934),f=a(9010),h=a(2755);function p(){var e,l,a,p,v,g,j,b,w,N,y,C;let{brand:k}=(0,i.D)(),[S,B]=(0,x.useState)(!1),[z,V]=(0,x.useState)({}),[E,q]=(0,x.useState)(""),[I,F]=(0,x.useState)(null),[D,P]=(0,x.useState)([]),[_,L]=(0,x.useState)([]),[H,O]=(0,x.useState)([]),[R,Q]=(0,x.useState)(null),A=(0,x.useCallback)(async()=>{let e=await fetch("/api/property/content");V(await e.json())},[]);(0,x.useEffect)(()=>{A()},[A]);let G=null!==(g=null==k?void 0:k.homeFilters)&&void 0!==g?g:[],T=(null===(e=z.Empreendimento)||void 0===e?void 0:e.filter(e=>""!==e))||[];return(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center gap-3 z-10",children:[(0,t.jsx)("div",{className:"flex flex-col md:flex-row items-center bg-white rounded-3xl md:rounded-3xl px-4 py-2 w-full gap-4 md:gap-0",children:(0,t.jsxs)(s.E.div,{initial:{opacity:0,y:S?50:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:S?-50:50},transition:{duration:.5,ease:"easeInOut"},className:"w-full flex flex-col md:flex-row items-center gap-4 flex-wrap",children:[S?(0,t.jsx)(c.I,{type:"text",placeholder:"C\xf3digo",value:E,onChange:e=>q(e.target.value),className:"w-full border-none shadow-none focus-visible:ring-0"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(h.Ph,{onValueChange:F,children:[(0,t.jsx)(h.i4,{className:"flex-1 md:max-w-[250px] border-none shadow-none focus:ring-0",title:"O que deseja",children:(0,t.jsx)(h.ki,{placeholder:"O que deseja?"})}),(0,t.jsx)(h.Bw,{children:(0,t.jsxs)(h.DI,{children:[(0,t.jsx)(h.Ql,{value:"null",children:"O que deseja?"}),null===(l=z.Status)||void 0===l?void 0:l.filter(e=>""!==e).map(e=>(0,t.jsx)(h.Ql,{value:e,children:e},e))]})})]}),G.includes(4)&&(0,t.jsx)(m.N,{className:"flex-1 md:max-w-[250px] border-none shadow-none focus:ring-0",placeholder:"Tipos de im\xf3vel",options:null!==(j=null===(a=z.Categoria)||void 0===a?void 0:a.filter(e=>""!==e).map(e=>({label:e,value:e})))&&void 0!==j?j:[],onValueChange:e=>O(e.map(e=>e)),defaultValue:null!==(b=H.map(e=>e))&&void 0!==b?b:[],variant:"inverted",maxCount:0}),(0,t.jsx)(m.N,{className:"flex-1 md:max-w-[250px] border-none shadow-none focus:ring-0",placeholder:"Em qual cidade",options:null!==(w=null===(p=z.Cidade)||void 0===p?void 0:p.filter(e=>""!==e).map(e=>({label:e,value:e})))&&void 0!==w?w:[],onValueChange:e=>P(e.map(e=>e)),defaultValue:null!==(N=D.map(e=>e))&&void 0!==N?N:[],variant:"inverted",maxCount:0}),(0,t.jsx)(m.N,{className:"flex-1 md:max-w-[250px] border-none shadow-none focus:ring-0",placeholder:"Em qual bairro",options:null!==(y=null===(v=k.showShoppingDistrict?z.BairroComercial:z.Bairro)||void 0===v?void 0:v.filter(e=>""!==e).map(e=>({label:e,value:e})))&&void 0!==y?y:[],onValueChange:e=>L(e.map(e=>e)),defaultValue:null!==(C=_.map(e=>e))&&void 0!==C?C:[],variant:"inverted",maxCount:0}),G.includes(5)&&(0,t.jsxs)(h.Ph,{onValueChange:Q,children:[(0,t.jsx)(h.i4,{className:"flex-1 md:max-w-[250px] border-none shadow-none focus:ring-0",title:"Empreendimento",children:(0,t.jsx)(h.ki,{placeholder:"Empreendimento"})}),(0,t.jsx)(h.Bw,{children:(0,t.jsxs)(h.DI,{children:[(0,t.jsx)(h.Ql,{value:"null",children:"Empreendimento"}),R&&"null"!==R&&(0,t.jsx)(h.Ql,{value:R,children:R}),(0,t.jsx)(u.S_,{width:300,height:200,itemData:T,itemCount:T.length,itemSize:e=>T[e]===R?0:35,style:{scrollbarWidth:"none"},children:e=>{let{index:l,style:a,data:n}=e;return(0,t.jsx)(t.Fragment,{children:R!==n[l]&&(0,t.jsx)(h.Ql,{value:n[l],style:{...a},children:n[l]},n[l])})}})]})})]})]}),(0,t.jsx)(n.default,{href:{pathname:"/busca",query:S?{...E&&{codigo:E}}:{...I&&{finalidade:I},...R&&{empreendimento:R},...D.length>0&&{cidade:D.map(e=>e).join(",")},..._&&_.length>0&&{bairro:_.map(e=>e).join(",")},...H&&H.length>0&&{tipo:H.map(e=>e).join(",")}}},className:(0,r.cn)((0,f.d)({variant:"default"}),"w-full flex-1 h-12 rounded-3xl bg-brand hover:bg-brand hover:opacity-80"),children:"Buscar"})]},S?"code":"filters")}),(0,t.jsx)("div",{className:"flex flex-col justify-center items-center",children:(0,t.jsxs)(f.z,{variant:"link",className:"gap-2 text-white",onClick:()=>B(!S),children:[S?(0,t.jsx)(o.ulB,{}):(0,t.jsx)(d.FKI,{size:18}),S?"Buscar por filtros":"Buscar por c\xf3digo"]})})]})}},6887:function(e,l,a){a.d(l,{Carousel:function(){return u},CarouselContent:function(){return x},CarouselItem:function(){return m},CarouselNext:function(){return h},CarouselPrevious:function(){return f}});var t=a(5862),n=a(7058),r=a(416),s=a(3121),i=a(6206),o=a(9010);let d=n.createContext(null);function c(){let e=n.useContext(d);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}let u=n.forwardRef((e,l)=>{let{orientation:a="horizontal",opts:r,setApi:o,plugins:c,className:u,children:x,...m}=e,[f,h]=(0,s.Z)({...r,axis:"horizontal"===a?"x":"y"},c),[p,v]=n.useState(!1),[g,j]=n.useState(!1),b=n.useCallback(e=>{e&&(v(e.canScrollPrev()),j(e.canScrollNext()))},[]),w=n.useCallback(()=>{null==h||h.scrollPrev()},[h]),N=n.useCallback(()=>{null==h||h.scrollNext()},[h]),y=n.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),w()):"ArrowRight"===e.key&&(e.preventDefault(),N())},[w,N]);return n.useEffect(()=>{h&&o&&o(h)},[h,o]),n.useEffect(()=>{if(h)return b(h),h.on("reInit",b),h.on("select",b),()=>{null==h||h.off("select",b)}},[h,b]),(0,t.jsx)(d.Provider,{value:{carouselRef:f,api:h,opts:r,orientation:a||((null==r?void 0:r.axis)==="y"?"vertical":"horizontal"),scrollPrev:w,scrollNext:N,canScrollPrev:p,canScrollNext:g},children:(0,t.jsx)("div",{ref:l,onKeyDownCapture:y,className:(0,i.cn)("relative",u),role:"region","aria-roledescription":"carousel",...m,children:x})})});u.displayName="Carousel";let x=n.forwardRef((e,l)=>{let{className:a,...n}=e,{carouselRef:r,orientation:s}=c();return(0,t.jsx)("div",{ref:r,className:"overflow-hidden",children:(0,t.jsx)("div",{ref:l,className:(0,i.cn)("flex","horizontal"===s?"-ml-4":"-mt-4 flex-col",a),...n})})});x.displayName="CarouselContent";let m=n.forwardRef((e,l)=>{let{className:a,...n}=e,{orientation:r}=c();return(0,t.jsx)("div",{ref:l,role:"group","aria-roledescription":"slide",className:(0,i.cn)("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),...n})});m.displayName="CarouselItem";let f=n.forwardRef((e,l)=>{let{className:a,variant:n="outline",size:s="icon",...d}=e,{orientation:u,scrollPrev:x,canScrollPrev:m}=c();return(0,t.jsxs)(o.z,{ref:l,variant:n,size:s,className:(0,i.cn)("absolute  h-8 w-8 rounded-full","horizontal"===u?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,onClick:x,...d,children:[(0,t.jsx)(r.Y4O,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Previous slide"})]})});f.displayName="CarouselPrevious";let h=n.forwardRef((e,l)=>{let{className:a,variant:n="outline",size:s="icon",...d}=e,{orientation:u,scrollNext:x,canScrollNext:m}=c();return(0,t.jsxs)(o.z,{ref:l,variant:n,size:s,className:(0,i.cn)("absolute h-8 w-8 rounded-full","horizontal"===u?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!m,onClick:x,...d,children:[(0,t.jsx)(r.LZ3,{className:"h-4 w-4"}),(0,t.jsx)("span",{className:"sr-only",children:"Next slide"})]})});h.displayName="CarouselNext"}}]);