"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[579],{94909:function(e,o,t){t.d(o,{Z:function(){return R}});var n=t(85893),r=t(11163),i=t(67294),s=t(7335),l=t(36979),a=t(23100),c=t(89594),d=t(86367),u=t(204),x=t(88911),p=t(54641),h=t(76684),m=t(62207),g=t(31963),f=t(77312),b=t(44504),j=t(55819),v=t(73793),S=t(89154),w=t(47018),y=t(29222),z=t(22004),_=t(4648),k=t(33085);let C=e=>{var o,t,r;let{images:s,isOpen:l,onOpen:c,onClose:d}=e,[u,x]=(0,i.useState)(0),p=()=>{u>1?x(u-1):x(s.length-1)},h=()=>{u<s.length-1?x(u+1):x(0)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(m.u_,{onClose:d,onOpen:c,size:"xxl",isOpen:l,motionPreset:"scale",isCentered:!0,scrollBehavior:"inside",children:[(0,n.jsx)(g.Z,{}),(0,n.jsxs)(f.h,{children:[(0,n.jsx)(b.x,{}),(0,n.jsx)(j.o,{}),(0,n.jsxs)(v.f,{display:"flex",alignItems:"center",justifyContent:"center",position:"relative",children:[(0,n.jsx)(S.h,{boxShadow:"md",borderRadius:"full",size:"md",p:2,onClick:p,bg:"white",variant:"link",minW:0,_hover:{bg:"#EFEFEF"},position:"fixed",left:"0",top:"50%",transform:"translate(50%, -50%)",children:(0,n.jsx)(_.Z,{color:"brand.600",boxSize:5})}),(0,n.jsx)(a.xu,{w:"98%",h:"75vh",bgImage:(null===(o=s[u])||void 0===o?void 0:o.includes("https://youtu.be"))?"":(null===(t=s[u])||void 0===t?void 0:t.includes("http"))?s[u]:"https://media.wiggot.mx/".concat(s[u],"-l.jpg"),bgSize:"contain",backgroundRepeat:"no-repeat",bgPos:"center",onClick:h,children:(null===(r=s[u])||void 0===r?void 0:r.includes("https://youtu.be"))?(0,n.jsx)(z.Z,{url:s[u],loop:!0,width:"100%",height:"100%"}):(0,n.jsx)(n.Fragment,{})}),(0,n.jsx)(S.h,{boxShadow:"md",borderRadius:"full",size:"md",p:2,onClick:h,bg:"white",variant:"link",minW:0,_hover:{bg:"#EFEFEF"},position:"fixed",right:"0",top:"50%",transform:"translate(-50%, -50%)",children:(0,n.jsx)(k.Z,{color:"brand.600",boxSize:5})})]}),(0,n.jsx)(w.m,{children:(0,n.jsx)(y.z,{onClick:d,children:"Cerrar"})})]})]})})};var E=t(44908);let F=e=>{let{id:o,title:t,min_presale_price:i,url:m,photo:g,address:f,ground_size:b,bedrooms:j,bathrooms:v,parkingLots:S,propertyType:w="",operation:y,images:z,unitsModels:_,isCDMX:k,isGuiaRent:F,badge:R,currency:D,online_sale:I,...W}=e,{isOpen:P,onOpen:A,onClose:N}=(0,s.q)(),{NumberF:O}=(0,E.Z)(),L=(0,r.useRouter)(),B=new URLSearchParams(L.query),T=()=>{m&&"#"!==m&&window.open(m,"_blank")},U=()=>{A()};return(0,n.jsxs)(l.W,{...W,margin:"0",gap:"0",padding:"0",h:"100%",children:[(0,n.jsx)(C,{images:z||[],isOpen:P,onOpen:A,onClose:N}),(0,n.jsxs)(a.xu,{w:"100%",h:"100%",borderRadius:{base:"10px",md:"10px"},overflow:"hidden",cursor:m&&"#"!==m||z?"pointer":"default",shadow:"md",transitionDuration:".3s",_hover:{shadow:"lg",borderColor:"brand.600"},"aria-label":t,borderWidth:"sponsored"===R?"6px":"0px",borderColor:"sponsored"===R?"brand.500":"transparent",children:[(0,n.jsxs)(a.xu,{bgImage:g,bgSize:"cover",bgPosition:"center",w:"full",h:"64",position:"relative",alt:t,bgColor:"gray.100",onClick:z?U:T,children:[y&&(0,n.jsx)(a.xu,{position:"absolute",left:"4",top:"4",bg:F?"#E81F76":"Renta"===y?"#FFCD00":"accent.500",color:F||"Renta"!==y?"white":"black",fontWeight:"700",px:"8",py:"2",rounded:"10px",fontSize:I?"2xs":"xs",children:y}),_&&(0,n.jsx)(c.Vp,{position:"absolute",right:"auto",top:"4",bg:"blackAlpha.700",color:"white",fontWeight:"light",px:"6",py:"2",rounded:"full",children:"".concat(_," disponibles")}),"sponsored"===R&&(0,n.jsx)(c.Vp,{position:"absolute",right:0,top:"4",bg:"white",color:"white",fontWeight:"light",px:"4",py:"2",borderLeftRadius:"full",children:(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/buscador/Champion_Badge.svg",h:5,w:"auto"})}),I&&(0,n.jsx)(c.Vp,{position:"absolute",right:0,top:"4",bg:"#5AC727",color:"white",fontWeight:"700",fontSize:"2xs",px:"4",py:"2",borderLeftRadius:"full",children:"APARTA ONLINE"})]}),(0,n.jsxs)(u.k,{direction:"column",px:"4",pt:"2",pb:"1",height:"auto",children:[F&&(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/buscador/guiarent_logo.webp",alt:"guiarent",maxW:"40%",mx:"auto",py:2}),(0,n.jsx)(a.xu,{fontWeight:"semibold",as:"h4",id:"id-id-box",fontSize:"xl",lineHeight:"tight",maxH:"48",h:"62px",color:"accent.500",title:t,onClick:()=>{"s0k4deR"===B.id?window.open("/Model/".concat(B.id,"/").concat(o),"_blank"):window.open(m,"_blank")},_hover:{color:"brand.500"},transitionDuration:".3s",children:(0,n.jsx)(x.x,{noOfLines:"2",children:t})}),(0,n.jsx)(p.U,{mt:j||v||S?"0":"0px",children:(0,n.jsx)(x.x,{fontSize:"sm",color:"gray.700",fontWeight:"light",title:f,isTruncated:!0,children:f})}),k?null:(0,n.jsxs)(h.K,{mt:"4",direction:"row",w:"100%",alignItems:"center",justifyContent:"center",children:[b&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/cinta-metrica.svg",alt:"Ubicaci\xf3n \xcdcono",w:"6"}),(0,n.jsxs)(x.x,{fontSize:"xs",color:"gray.600",fontWeight:"light",isTruncated:!0,title:"".concat(b," mt\xb2"),children:[b," mt\xb2"]})]}),j&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/cama.svg",alt:"Ubicaci\xf3n \xcdcono",w:"6"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.600",fontWeight:"light",children:j})]}),v&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/inodoro.svg",alt:"Ubicaci\xf3n \xcdcono",w:"6"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.600",fontWeight:"light",children:v})]}),S&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(d.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/carro-familiar.svg",alt:"Ubicaci\xf3n \xcdcono",w:"6"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.600",fontWeight:"light",children:S})]})]}),(0,n.jsx)(p.U,{mb:"3",children:(0,n.jsx)(x.x,{marginTop:"10px",fontSize:"md",color:"accent.500",fontWeight:"700",title:i,isTruncated:!0,children:i?(0,n.jsxs)("span",{children:[w,(0,n.jsx)("br",{}),"Desde ",O(i,!0,"",2)," ",D]}):(0,n.jsxs)("span",{children:[w,(0,n.jsx)("br",{})]})})})]})]})]},o)};var R=F},72592:function(e,o,t){var n=t(85893),r=t(67294),i=t(37054),s=t(45697),l=t.n(s);let a=e=>{let{children:o,zoom:t,center:s,containerStyle:l,onZoomChanged:a,...c}=e,d=(0,r.useRef)(null),[u,x]=(0,r.useState)(!1);return(0,n.jsx)(i.b6,{...c,mapContainerStyle:l,center:s,zoom:t,onZoomChanged:e=>{try{a(d.current.getZoom())}catch(e){a(t)}},onLoad:e=>{x(!0),d.current=e},children:u?o:null})};a.propTypes={containerStyle:l().object,center:l().object,zoom:l().number,onZoomChanged:l().func},a.defaultProps={containerStyle:{width:"100%",height:"100%"},center:{lat:20.6596988,lng:-103.3496092},zoom:10,onZoomChanged:e=>e},o.Z=a},75145:function(e,o,t){t.d(o,{D:function(){return s}});var n=t(85893),r=t(67294),i=t(11163);let s=(0,r.createContext)(),{Provider:l}=s,a=e=>{let{children:o,data:t}=e,s=(0,i.useRouter)(),a=s.pathname.includes("guiarent")||s.pathname.includes("PropRent"),[c,d]=(0,r.useState)(null),[u,x]=(0,r.useState)(null),[p,h]=(0,r.useState)(null),[m,g]=(0,r.useState)(null),[f,b]=(0,r.useState)(""),[j,v]=(0,r.useState)(a?"LEASE":"SALE"),[S,w]=(0,r.useState)(null),[y,z]=(0,r.useState)(null),[_,k]=(0,r.useState)(null),[C,E]=(0,r.useState)(0),[F,R]=(0,r.useState)(0),[D,I]=(0,r.useState)(0),[W,P]=(0,r.useState)(0),[A,N]=(0,r.useState)(null),[O,L]=(0,r.useState)(null),[B,T]=(0,r.useState)(null),[U,H]=(0,r.useState)(null),[V,M]=(0,r.useState)(null),[q,Z]=(0,r.useState)("Buscar?page=1"),[G,K]=(0,r.useState)([]);(0,r.useEffect)(()=>{if(t){let e=[];for(let o=1;o<51;o++){let n,r=3e5*(o-1),i=3e5*o;"SALE"===j&&(n=(n=t.filter(e=>e.sale_price<=i)).filter(e=>e.sale_price>=r)),"LEASE"===j&&(n=(n=t.filter(e=>e.lease_price<=i)).filter(e=>e.lease_price>=r)),"PRESALE"===j&&(n=(n=t.filter(e=>e.presale_price<=i)).filter(e=>e.presale_price>=r));let s=n.length>0?8*n.length:4;s=s>40?60:s,e.push({id:o,max_value:i,min_value:r,height:s})}K(e)}},[t]);let Y=e=>{d(e.location),x(e.locality),h(e.administrative_area_level_1),g(e.sublocality_level_1?e.sublocality_level_1:null),z(e.latitude),k(e.longitude)},J=e=>{b(e)},X=e=>{v(e)},$=e=>{w(e)},Q=e=>{E(e)},ee=e=>{R(e)},eo=e=>{I(e)},et=e=>{P(e)},en=e=>{N(e)},er=e=>{L(e)},ei=e=>{T(e)},es=e=>{H(e)},el=e=>{M(e)},ea=e=>{let o="Buscar";e&&(o="guiarent");let t=o+"?page=1";S?t+="&property_id=".concat(S):(c&&(t+="&location=".concat(c)),u&&(t+="&city=".concat(u)),p&&(t+="&state=".concat(p)),"neighborhood"!=m&&null!=m&&(t+="&neighborhood=".concat(m)),f&&(t+="&type=".concat(f)),j&&(t+="&operation=".concat(j)),y&&(t+="&latitude=".concat(y)),_&&(t+="&longitude=".concat(_)),C>=0&&0!=F&&(t+="&price=".concat(C,",").concat(F)),D>=0&&0!=W&&(t+="&ground=".concat(D,",").concat(W)),A&&(t+="&bedrooms=".concat(A)),O&&(t+="&bathrooms=".concat(O)),B&&(t+="&halfBathrooms=".concat(B)),U&&(t+="&parking=".concat(U)),V&&(t+="&keyword=".concat(V))),Z(t),window.open(t,"_self")},ec=e=>{let o=e+"?page=1";S?o+="&property_id=".concat(S):(u&&(o+="&city=".concat(u)),p&&(o+="&state=".concat(p)),"neighborhood"!=m&&null!=m&&(o+="&neighborhood=".concat(m)),f&&(o+="&type=".concat(f)),j&&(o+="&operation=".concat(j)),y&&(o+="&latitude=".concat(y)),_&&(o+="&longitude=".concat(_)),C>=0&&0!=F&&(o+="&price=".concat(C,",").concat(F)),D>=0&&0!=W&&(o+="&ground=".concat(D,",").concat(W)),A&&(o+="&bedrooms=".concat(A)),O&&(o+="&bathrooms=".concat(O)),B&&(o+="&halfBathrooms=".concat(B)),U&&(o+="&parking=".concat(U)),V&&(o+="&keyword=".concat(V))),Z(o),window.open(o,"_self")};return(0,n.jsx)(l,{value:{url:q,city:u,state:p,neighborhood:m,type:f,operation:j,code:S,lat:y,lon:_,minPrice:C,maxPrice:F,minTerrain:D,maxTerrain:W,rooms:A,bathrooms:O,midBathrooms:B,parking:U,bars:G,addLocation:Y,addPropertyType:J,addOperation:X,addCode:$,addMinPrice:Q,addMaxPrice:ee,addMinTerrain:eo,addMaxTerrain:et,addRooms:en,addBathrooms:er,addMidBathrooms:ei,addParking:es,addKeyword:el,cleanFilters:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0],d(null),x(null),h(null),g(null),b(["HOUSE","TERRAIN","APARTMENT","WAREHOUSE","BUILDING","SHOP_SHOPPING_CENTER","OFFICE","SHOP"]),b(""),v("SALE"),w(null),z(null),k(null),E(0),R(0),I(0),P(0),N(null),L(null),T(null),H(null),M(null)},formatUrl:ea,formatUrlCity:ec},children:o})};o.Z=a},28159:function(e,o,t){var n=t(67294),r=t(11163);o.Z=function(){let e=(0,r.useRouter)();return{router:e,query:(0,n.useMemo)(()=>new URLSearchParams(e.query),[e.query]),queryParams:(0,n.useMemo)(()=>{let o=new URLSearchParams(e.query),t={};return o.forEach((e,o)=>t[o]=e),t},[e.query])}}},52301:function(e,o,t){var n=t(85893),r=t(11163),i=t(67294),s=t(52938),l=t(4453),a=t(31708),c=t(204),d=t(776),u=t(93344),x=t(23100),p=t(76684),h=t(88911),m=t(29222),g=t(33838),f=t(14418),b=t(86367),j=t(96486),v=t.n(j),S=t(94909);let w=e=>{let{isResultDevs:o,data:t,error:j,isLoading:w,isFetching:y,isSuccess:z,params:_,isCDMX:k,city_page:C,setButtonFloat:E,...F}=e,R={..._},D=1,[I,W]=(0,i.useState)(null),[P,A]=(0,i.useState)(!0),[N,O]=(0,i.useState)(9),[L,B]=(0,i.useState)(1),[T,U]=(0,i.useState)(null),[H,V]=(0,i.useState)(!1),M=(0,r.useRouter)(),q=M.pathname.includes("guiarent")||M.pathname.includes("PropRent"),Z=q?"/Propiedad/guiarent":"loscabos"===C||"queretaro"===C||"cdmx"===C?"/Propiedad/".concat(C):"/Propiedad",G=(0,i.useRef)(),K=(0,i.useRef)(),{breakpoints:Y}=(0,s.F)(),[J]=(0,l.a)("(min-width: ".concat(Y.md,")")),[X]=(0,l.a)("(min-width: ".concat(Y.lg,")")),[$]=(0,l.a)("(min-width: ".concat(Y.xl,")")),[Q]=(0,l.a)("(min-width: ".concat(Y.sm,")")),ee=()=>{var e=[];Object.keys(_).map(o=>{if("page"!==o&&"lat"!==o&&"lon"!==o){let t=_[o];switch(o){case"type":switch(_[o]){case"APARTMENT":t="Departamento";break;case"HOUSE":t="Casa";break;case"TERRAIN":t="Terrenos";break;case"DUPLEX_HOUSE":t="Casas Duplex";break;case"OFFICE":t="Oficinas";break;case"CONSULTING_ROOM":t="Consultorios";break;case"WAREHOUSE":t="Bodegas";break;case"SHOP_SHOPPING_CENTER":t="Locales comerciales";break;case"SHOP":t="Locales";break;case"INDUSTRIAL_BUILDING":t="Industriales";break;case"RANCH":t="Ranchos";break;case"BUILDING":t="Edificios";break;default:t=""}break;case"operation":switch(_[o]){case"LEASE":t=" en Renta";break;case"SALE":t=" en Venta";break;case"PRESALE":t=" en Preventa";break;default:t=""}break;default:t=_[o]}e.push({param:o,text:t})}});var o="",t="";e.map(e=>("type"===e.param&&(o=e.text+o),"operation"===e.param&&(o+=e.text),"state"===e.param&&(t=t+", "+e.text),"city"===e.param&&"city"!==e.text&&(t=", "+e.text+t),"neighborhood"===e.param&&(t=", "+e.text+t),"location"===e.param&&(t=e.text),o)),U(o+" "+t)};return(0,i.useEffect)(()=>{_&&ee()},[_]),(0,i.useEffect)(()=>{if(J?O(9):O(3),(null==t?void 0:t.length)>9&&(w||y)){A(!0),V(!0);return}if((!v().isEqual(_,R)||!I||0===I.length)&&z&&t&&t.length>0&&(A(!1),R={..._},D=L,W([...t])),P&&v().isEqual(_,R)&&H&&D!==L&&z&&t&&t.length>0){var e=I.concat(t);A(!1),V(!1),R={..._},D=L,W(e)}let o=e=>{e[0].isIntersecting&&t.length>0&&E(!1)};return K.current=new IntersectionObserver(o,{root:null,rootMargin:"20px",threshold:1}),G.current&&K.current.observe(G.current),()=>{K.current.disconnect()}},[z,w,y,J,G.current]),j?(0,n.jsxs)(p.K,{direction:"row",alignItems:"center",children:[(0,n.jsxs)(x.xu,{textAlign:"center",py:6,px:3,children:[(0,n.jsx)(f.X,{as:"h2",size:"xl",mt:6,mb:2,color:"accent.500",children:"Oops!"}),(0,n.jsx)(h.x,{fontSize:"sm",color:"gray.500",children:"Lo sentimos, no pudimos comunicarnos con el servicio de propiedades, intenta de nuevo mientras lo restablecemos."})]}),console.log("error:",j)]}):(0,n.jsxs)(n.Fragment,{children:[I?(0,n.jsxs)(x.xu,{...F,justifyContent:"center",w:"full",children:[(null==I?void 0:I.length)>0?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(h.x,{fontWeight:"400",fontSize:"xl",marginBottom:"2.5rem",children:[(0,n.jsxs)("strong",{children:["Resultados de b\xfasqueda: ",null==I?void 0:I.length]})," ",_.location?"en ":" "!==T?"de ":null," ",(0,n.jsx)("strong",{children:_.location?_.location:T})," "]}),(0,n.jsx)(a.r,{as:c.k,templateColumns:$?"repeat(2, 55%)":X?"repeat(2, 50%)":J?"repeat(2, 100%)":Q?"repeat(1, 80%)":"100%",justifyContent:X?"space-between":J?"start":"center",gap:"8",padding:"0px 0px 100px",id:"listadoScroll",children:I.map((e,o)=>{var t,r;return(0,n.jsx)("div",{ref:G,children:(0,n.jsx)(S.Z,{id:e.wiggot_code,title:e.title,url:"".concat(Z,"/wig-").concat(e.wiggot_code,"?operation=").concat(e.presale?"presale":e.sale?"sale":"lease"),propertyType:e.type,photo:(null==e?void 0:null===(t=e.photo)||void 0===t?void 0:t.includes("http"))?null==e?void 0:null===(r=e.photo)||void 0===r?void 0:r.replaceAll("wiggot.pro","wiggot.mx"):"https://media.wiggot.mx/".concat(null==e?void 0:e.photo,"-m.jpg"),address:e.location_props.street_name+" "+e.location_props.exterior_number+(e.location_props.city?", "+e.location_props.city:"")+(e.location_props.province?", "+e.location_props.province:"")+(e.location_props.country?", "+e.location_props.country:""),ground_size:e.structure_props.ground_size,bedrooms:e.structure_props.bedrooms,bathrooms:e.structure_props.bathrooms,min_presale_price:e.presale||e.sale||e.lease||"N/A",operation:e.presale?"Preventa":e.sale?"Venta":"Renta",currency:(null==e?void 0:e.presale_currency)||(null==e?void 0:e.sale_currency)||(null==e?void 0:e.lease_currency)||"MXN",online_sale:(null==e?void 0:e.online_sale)==="ACTIVE",isCDMX:k,isGuiaRent:!!e.labels[0]&&"GUIARENT"===e.labels[0]})},e.wiggot_code)})})]}):(0,n.jsx)(x.xu,{py:"5vh",children:(0,n.jsxs)(h.x,{fontSize:"3xl",fontWeight:"500",children:["Lo sentimos. No se han encontrado propiedades que coincidan con tu b\xfasqueda:",(0,n.jsx)(h.x,{fontSize:"3xl",fontWeight:"700",display:"inline-flex",ml:2,children:T||""})]})}),w||y||H&&t.length===N?(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)(a.r,{as:c.k,templateColumns:J?"repeat(2, 50%)":"1fr",justifyContent:"space-between",gap:"8",padding:"0px 0px 20px",id:"listadoScroll",children:[(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})}),(0,n.jsx)(d.P,{children:(0,n.jsx)(u.O,{w:"100%",height:"350px",borderRadius:{base:"10px",md:"10px"}})})]})}):(0,n.jsx)(n.Fragment,{})]}):z&&0===t.length?(0,n.jsxs)(x.xu,{py:"5vh",px:J?24:4,textAlign:"center",children:[(0,n.jsxs)(h.x,{fontSize:"2xl",fontWeight:"400",textAlign:"center",children:[(0,n.jsx)(b.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/buscador/not-found.webp",w:48,margin:"auto"}),"Lo sentimos no pudimos encontrar propiedades que coincidan con "," "===T?"tu b\xfasqueda":"",(0,n.jsx)(h.x,{fontSize:"2xl",fontWeight:"700",display:"inline-flex",ml:2,children:" "!==T?T:""})]}),(0,n.jsx)(h.x,{fontSize:"xl",fontWeight:"400",textAlign:"center",mt:6,mb:20,children:"Por favor intenta buscando en otra ubicaci\xf3n."}),(0,n.jsx)(m.z,{w:"170px",mt:2,mb:6,as:g.r,display:"inline-flex",rounded:"full",color:"#000",size:"sm",_active:{bg:"brand.500"},"aria-label":"Comenzar requerimiento",bgColor:"brand.500",href:"/Requerimiento",_hover:{textDecoration:"none",color:"#000",bg:"brand.500"},children:"B\xfasqueda Flexible"})]}):null,z&&0!==t.length?(0,n.jsx)(x.xu,{display:"block",justifyContent:"center",paddingTop:"50px",w:"auto",h:"lg",mx:"auto",maxW:"3x1",mt:"0",mb:"0",zIndex:"9",position:"relative",bottom:"0",children:(0,n.jsx)(p.K,{w:"auto",h:"md",backgroundImage:"url(https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/buscador/listafinal.webp)",backgroundSize:"cover",backgroundPosition:"center center",borderRadius:{md:"30",base:0},margin:"auto",position:"relative",display:"block",p:"0",bgColor:"gray.100",children:(0,n.jsxs)(c.k,{direction:"column",alignItems:"center",justifyContent:"end",w:"100%",h:"100%",children:[(0,n.jsxs)(h.x,{fontSize:{md:"5xl",base:"2xl"},align:"center",color:"white",fontWeight:"light",children:["No se han encontrado ",(0,n.jsx)("strong",{children:"m\xe1s resultados"})]}),(0,n.jsx)(h.x,{fontSize:{md:"2xl",base:"2xl"},align:"center",mb:"4",color:"white",fontWeight:"light",children:"Prueba con una b\xfasqueda m\xe1s personalizada"}),(0,n.jsx)(m.z,{w:"170px",mt:2,mb:6,as:g.r,display:"inline-flex",rounded:"full",color:"#000",size:"sm",_active:{bg:"brand.500"},"aria-label":"Comenzar requerimiento",bgColor:"brand.500",href:"/Requerimiento",_hover:{textDecoration:"none",color:"#000",bg:"brand.500"},children:"B\xfasqueda Flexible"})]})})}):(0,n.jsx)(n.Fragment,{})]})};o.Z=w},68958:function(e,o,t){t.d(o,{Z:function(){return S}});var n=t(85893),r=t(67294),i=t(72592),s=t(37054),l=t(11163),a=t(36979),c=t(23100),d=t(89594),u=t(204),x=t(88911),p=t(54641),h=t(76684),m=t(86367),g=t(31708),f=t(776);let b=e=>{var o,t,i,s,b,j,v,S,w,y,z,_,k,C;let{property:E,price:F,screenSize:R}=e,D=(0,l.useRouter)(),I=e=>{(null==E?void 0:E.desarrollo_interes_hubspot)?D.push("/desarrollo/".concat(E.url_name)):D.push("/Propiedad/wig-".concat(e,"?operation=").concat(E.presale?"presale":E.sale?"sale":"lease"))},[W,P]=(0,r.useState)(0);return(0,n.jsx)(n.Fragment,{children:R.winWidth>768?(0,n.jsx)(a.W,{margin:"0",gap:"0",padding:"0",children:(0,n.jsxs)(c.xu,{w:"xs",m:"0",borderRadius:{base:"10px",md:"10px"},overflow:"hidden",cursor:"pointer",shadow:"md",transitionDuration:".3s",_hover:{shadow:"lg"},"aria-label":E.title||E.name,children:[(0,n.jsx)(c.xu,{backgroundImage:E.photo.includes("http")?E.photo.replaceAll("wiggot.pro","wiggot.mx"):"url(https://media.wiggot.mx/".concat(E.photo,"-m.jpg)"),backgroundSize:"cover",bgPosition:"center",w:"full",h:"64",position:"relative",alt:E.title,bgColor:"gray.100",children:(0,n.jsx)(d.Vp,{position:"absolute",left:"-4",top:"4",bg:"accent.500",color:"white",fontWeight:"bold",px:"8",py:"2",rounded:"full",children:!0===E.lease?"Renta":E.presale?"Preventa":"Venta"})}),(0,n.jsxs)(u.k,{direction:"column",px:"4",pt:"2",pb:"1",onClick:()=>I(E.wiggot_code),children:[(0,n.jsx)(c.xu,{fontWeight:"bold",as:"h4",fontSize:"xl",lineHeight:"tight",h:"auto",color:"accent.500",title:E.title,children:(0,n.jsx)(x.x,{noOfLines:"2",textTransform:"capitalize",mb:1,children:E.title?E.title.toLowerCase():E.name.toLowerCase()})}),(0,n.jsx)(p.U,{mt:"2",children:(0,n.jsx)(x.x,{fontSize:"sm",color:"gray.700",fontWeight:"light",title:E.location_props.street_name+" "+E.location_props.exterior_number+(E.location_props.city?", "+E.location_props.city:"")+(E.location_props.province?", "+E.location_props.province:"")+(E.location_props.country?", "+E.location_props.country:""),isTruncated:!0,children:E.location_props.street_name+" "+E.location_props.exterior_number+(E.location_props.city?", "+E.location_props.city:"")+(E.location_props.province?", "+E.location_props.province:"")+(E.location_props.country?", "+E.location_props.country:"")})}),(0,n.jsxs)(h.K,{mt:"2",direction:"row",w:"100%",borderBottom:"1px",borderBottomColor:"gray.200",alignItems:"center",justifyContent:"center",children:[((null==E?void 0:null===(o=E.structure_props)||void 0===o?void 0:o.ground_size)||(null==E?void 0:E.min_ground_size))&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(m.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/cinta-metrica.svg",alt:"Ubicaci\xf3n icono",w:"5"}),(0,n.jsxs)(x.x,{fontSize:"xs",color:"gray.400",fontWeight:"light",isTruncated:!0,title:"".concat((null==E?void 0:null===(t=E.structure_props)||void 0===t?void 0:t.ground_size)?null==E?void 0:null===(i=E.structure_props)||void 0===i?void 0:i.ground_size:null==E?void 0:E.min_ground_size," mt\xb2"),children:[(null==E?void 0:null===(s=E.structure_props)||void 0===s?void 0:s.ground_size)?null==E?void 0:null===(b=E.structure_props)||void 0===b?void 0:b.ground_size:null==E?void 0:E.min_ground_size," mt\xb2"]})]}),((null==E?void 0:null===(j=E.structure_props)||void 0===j?void 0:j.bedrooms)||(null==E?void 0:E.min_bedrooms))&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(m.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/cama.svg",alt:"Cuartos icono",w:"5"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.400",fontWeight:"light",children:(null==E?void 0:null===(v=E.structure_props)||void 0===v?void 0:v.bedrooms)?null==E?void 0:null===(S=E.structure_props)||void 0===S?void 0:S.bedrooms:null==E?void 0:E.min_bedrooms})]}),((null==E?void 0:null===(w=E.structure_props)||void 0===w?void 0:w.bathrooms)||(null==E?void 0:E.min_bathrooms))&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(m.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/inodoro.svg",alt:"Ba\xf1o icono",w:"4"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.400",fontWeight:"light",children:(null==E?void 0:null===(y=E.structure_props)||void 0===y?void 0:y.bathrooms)?null==E?void 0:null===(z=E.structure_props)||void 0===z?void 0:z.bathrooms:null==E?void 0:E.min_bathrooms})]}),((null==E?void 0:null===(_=E.structure_props)||void 0===_?void 0:_.parking_lots)||(null==E?void 0:E.min_parking_lots))&&(0,n.jsxs)(p.U,{m:"2",color:"gray.600",w:"full",textAlign:"center",justifyContent:"center",children:[(0,n.jsx)(m.E,{src:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/property-card/carro-familiar.svg",alt:"Estacionamiento Icono",w:"5"}),(0,n.jsx)(x.x,{fontSize:"xs",color:"gray.400",fontWeight:"light",children:(null==E?void 0:null===(k=E.structure_props)||void 0===k?void 0:k.parking_lots)?null==E?void 0:null===(C=E.structure_props)||void 0===C?void 0:C.parking_lots:null==E?void 0:E.min_parking_lots})]})]}),(0,n.jsx)(p.U,{my:"2",children:(0,n.jsxs)(x.x,{fontSize:"md",color:"accent.500",fontWeight:"400",title:F,isTruncated:!0,w:"100%",children:["Desde: ",(0,n.jsxs)("strong",{children:["$ ",Intl.NumberFormat().format(F)]})]})})]})]})},E.wiggot_code||E.id):(0,n.jsx)(a.W,{as:h.K,margin:"0",gap:"0",padding:"0",children:(0,n.jsxs)(g.r,{templateColumns:"repeat(3, 1fr)",gap:2,children:[(0,n.jsx)(f.P,{colSpan:"1",children:(0,n.jsx)(c.xu,{w:"100%",m:"0",borderRadiusTopLeft:{base:"10px",md:"10px"},borderRadiusBottomLeft:{base:"10px",md:"10px"},overflow:"hidden",cursor:"pointer",shadow:"md",transitionDuration:".3s",_hover:{shadow:"lg"},"aria-label":E.title,onClick:()=>I(E.wiggot_code),children:(0,n.jsx)(c.xu,{backgroundImage:E.photo.includes("http")?"url(".concat(E.photo.replaceAll("wiggot.pro","wiggot.mx"),")"):"url($https://media.wiggot.mx/".concat(E.photo,"-m.jpg)"),backgroundSize:"cover",bgPosition:"center",w:"full",h:"100px",position:"relative",alt:E.title,bgColor:"gray.100"})})}),(0,n.jsxs)(f.P,{colSpan:"2",alignSelf:"center",pr:2,children:[(0,n.jsx)(c.xu,{fontWeight:"bold",as:"h4",fontSize:"md",lineHeight:"tight",h:"auto",color:"accent.500",title:E.title,mb:2,onClick:()=>I(E.wiggot_code),children:(0,n.jsx)(x.x,{noOfLines:"2",textTransform:"capitalize",children:E.title?E.title.toLowerCase():E.name.toLowerCase()})}),(0,n.jsx)(c.xu,{title:"Ver m\xe1s",onClick:()=>I(E.wiggot_code||E.id),children:(0,n.jsx)(x.x,{noOfLines:"2",fontWeight:"300",fontSize:"xs",lineHeight:"tight",color:"#949494",textDecoration:"underline",children:"Ver m\xe1s"})})]})]})},E.wiggot_code||E.id)})},j=e=>{let{property:o,marker:t,screenSize:i}=e,l="https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/badgeBlue.webp",[a,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(l),[x,p]=(0,r.useState)("#ffffff"),[h,m]=(0,r.useState)(0),[g,f]=(0,r.useState)(null);(0,r.useEffect)(()=>{o[0]&&(m(o[0].sale?o[0].sale:o[0].lease?o[0].lease:o[0].presale),f(o[0]))},[o]);let j=()=>{u(l),p("#ffffff"),c(!a)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Jx,{title:t.title,position:t.position,markerWithLabel:window.MarkerWithLabel,opacity:1,icon:{url:d,scaledSize:{width:100,height:30},fillOpacity:0},label:{text:"$ "+Intl.NumberFormat().format(h),color:x,fontSize:"12px",fontWeight:"400",zIndex:1},onClick:()=>{j()},children:a&&(0,n.jsx)(s.nx,{onCloseClick:()=>{j()},style:{"max-width":i<768?"500px":"auto"},children:(0,n.jsx)(b,{property:g,price:h,screenSize:i})})},"marker".concat(t.position))})},v=e=>{let{property:o,marker:t,screenSize:i}=e,l="https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/BadgeDev.png",[a,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(l),[x,p]=(0,r.useState)("#ffffff"),[h,m]=(0,r.useState)(0),[g,f]=(0,r.useState)(null);(0,r.useEffect)(()=>{o[0]&&(m(o[0].sale?o[0].sale:o[0].lease?o[0].lease:o[0].presale?o[0].presale:o[0].min_price),f(o[0]))},[o]);let j=()=>{u(l),p("#ffffff"),c(!a)};return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.Jx,{title:t.title,position:t.position,markerWithLabel:window.MarkerWithLabel,opacity:1,icon:{url:d,scaledSize:{width:37,height:50},fillOpacity:0},onClick:()=>{j()},children:a&&(0,n.jsx)(s.nx,{onCloseClick:()=>{j()},style:{"max-width":i<768?"500px":"auto"},children:(0,n.jsx)(b,{property:g,price:h,screenSize:i})})},"marker".concat(t.position))})};var S=function(e,o){arguments.length>2&&void 0!==arguments[2]&&arguments[2];for(var t=arguments.length,s=Array(t>3?t-3:0),l=3;l<t;l++)s[l-3]=arguments[l];let[a,c]=(0,r.useState)(null),[d,u]=(0,r.useState)([]),[x,p]=(0,r.useState)(12),[h,m]=(0,r.useState)((null==e?void 0:e.center_)?null==e?void 0:e.center_:{lat:20.6739383,lng:-103.4054535}),[g,f]=(0,r.useState)({winWidth:window.innerWidth,winHeight:window.innerHeight}),b=()=>{f({winWidth:window.innerWidth,winHeight:window.innerHeight})};return(0,r.useEffect)(()=>(window.addEventListener("resize",b),()=>{window.removeEventListener("resize",b)}),[g]),(0,r.useEffect)(()=>{if(e){var o;u(e.data),c(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.map(e=>({position:{lat:e.location_props?e.location_props.latitude:e.latitude,lng:e.location_props?e.location_props.longitude:e.longitude},title:(null==e?void 0:e.title)?e.title:null==e?void 0:e.code,id:e.wiggot_code?e.wiggot_code:e.id,type:e.desarrollo_interes_hubspot?"Develop":"Property"})).filter((e,o,t)=>t.findIndex(o=>JSON.stringify(o.position)===JSON.stringify(e.position))===o))}},[e]),(0,r.useEffect)(()=>{e.params.lat&&e.params.lon&&(m({lat:e.params.lat,lng:e.params.lon}),p(12))},[e.params]),(0,n.jsx)("div",{className:"Map",children:(0,n.jsx)(i.Z,{zoom:x,style:{height:"84vh"},containerStyle:{height:"84vh"},center:h,onZoomChanged:p,children:a?a.map(e=>(0,n.jsx)(n.Fragment,{children:"Property"===e.type?(0,n.jsx)(j,{property:d.filter(o=>(o.wiggot_code?o.wiggot_code:o.id)===e.id),marker:e,screenSize:g}):(0,n.jsx)(v,{property:d.filter(o=>(o.wiggot_code?o.wiggot_code:o.id)===e.id),marker:e,screenSize:g})})):null})})}},38284:function(e,o,t){var n=t(85893),r=t(11163),i=t(67294),s=t(52938),l=t(4453),a=t(29222),c=t(88911),d=t(86367),u=t(204),x=t(28129),p=t(18691),h=t(31708),m=t(776),g=t(38267),f=t(5370),b=t(59233),j=t(96987),v=t(23100),S=t(89154),w=t(76684),y=t(56877),z=t(5434),_=t(12774),k=t(81785),C=t(75145),E=t(51936);function F(e,o){var t=Intl.NumberFormat(o).format(11111).replace(RegExp("\\p{Number}","gu"),""),n=Intl.NumberFormat(o).format(1.1).replace(RegExp("\\p{Number}","gu"),"");return parseFloat(e.replace(RegExp("\\"+t,"g"),"").replace(RegExp("\\"+n),"."))}let R=e=>{let{params:o,city:t,view:R,setView:D}=e,{breakpoints:I}=(0,s.F)(),[W]=(0,l.a)("(min-width: ".concat(I.lg,")")),P=(0,i.useRef)(null),A=(0,i.useRef)(null),[N,O]=(0,i.useState)({property:"Cualquiera",valProperty:"",searching:"",valSearching:""}),L=(0,r.useRouter)(),B=L.pathname.includes("guiarent")||L.pathname.includes("PropRent"),{operation:T,type:U,code:H,minPrice:V,maxPrice:M,cleanFilters:q,addLocation:Z,addPropertyType:G,addOperation:K,addCode:Y,addMinPrice:J,addMaxPrice:X,addMinTerrain:$,addMaxTerrain:Q,minTerrain:ee,maxTerrain:eo,rooms:et,bathrooms:en,midBathrooms:er,parking:ei,addRooms:es,addBathrooms:el,addMidBathrooms:ea,addParking:ec,addKeyword:ed,formatUrl:eu,formatUrlCity:ex}=(0,i.useContext)(C.D),[ep]=(0,E.ZC)(A,P);(0,i.useEffect)(()=>{},[ep]);let eh=e=>{switch(e){case"PRESALE":return"Preventa";case"SALE":return"Venta";case"LEASE":return"Renta";default:return}};(0,i.useEffect)(()=>{es(0),el(0),ec(0),ea(0);let e=window.location.search,o=new URLSearchParams(e),t=o.get("operation");t&&O({...N,searching:t,valSearching:eh(t)})},[]),(0,i.useEffect)(()=>{ep&&Z(ep)},[ep]),(0,i.useEffect)(()=>{if(o.property_id)Y(o.property_id);else{if(o.operation&&K(o.operation),o.type&&G(o.type),o.bathrooms&&el(o.bathrooms),o.bedrooms&&es(o.bedrooms),o.parking&&ec(o.parking),o.halfBathrooms&&ea(o.halfBathrooms),o.price){let e=o.price.split(",");J(e[0]),X(e[1])}if(o.ground){let e=o.ground.split(",");$(e[0]),Q(e[1])}}},[o]);let em=e=>{var o=RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$");7===e.length&&o.test(e)?Y(e):ed(e)},eg=()=>{t?ex(t):eu(B)},ef=()=>{"list"===R?D("map"):D("list")},eb=()=>(0,n.jsx)(a.z,{w:"full",rounded:"full",color:"#fff",size:"sm",_active:{bg:"#002B49"},bgColor:"#002B49",_hover:{textDecoration:"none",color:"#fff",bg:"#002137"},onClick:ef,children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.x,{children:"list"===R?(0,n.jsx)("span",{children:"Ver en el mapa"}):(0,n.jsx)("span",{children:"Mostrar Lista"})}),(0,n.jsx)(d.E,{src:"list"===R?"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/mapa-blanco.webp":"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/lista-blanco.webp",color:"#000",boxSize:5,marginLeft:"5px"})]})}),ej=(e,o,t)=>{"property"===e?O({...N,property:t,valProperty:o}):O({...N,searching:t,valSearching:o})},ev=(e,o)=>{switch(e){case"rooms":es(o);break;case"baths":el(o);break;case"garage":ec(o);break;case"midBaths":ea(o)}};return(0,i.useEffect)(()=>{let e=document.getElementById("ubicacion");e&&function(e){let o=e.addEventListener,t=(t,n)=>{if("keydown"===t){let o=n;n=t=>{let n=document.getElementsByClassName("pac-item-selected").length;if("Enter"===t.key&&!n){let t=new KeyboardEvent("keydown",{key:"ArrowDown",code:"ArrowDown",keyCode:40});o.apply(e,[t])}o.apply(e,[t])}}o.apply(e,[t,n])};e.addEventListener=t}(e)}),(0,n.jsxs)(u.k,{my:10,zIndex:1,pt:10,pb:4,w:W?"416px":"300px",overflowY:"scroll",overflowX:"hidden",height:"60vh",border:"1px #C5C5C5 solid",borderTopRadius:"lg",flexDirection:"column",bg:"#F6F6F6",children:[(0,n.jsxs)(u.k,{flexDirection:"column",px:10,children:[(0,n.jsx)(c.x,{fontSize:"sm",mb:2,children:"\xbfD\xf3nde quieres vivir?"}),(0,n.jsx)(x.I,{id:"ubicacion",type:"text",mb:4,ref:P,rounded:"full",bg:"#fff",placeholder:"Lugar",fontSize:"sm",color:"gray.600",onChange:e=>em(e.target.value)})]}),(0,n.jsx)(u.k,{mb:4,px:10,children:(0,n.jsx)(eb,{})}),(0,n.jsxs)(u.k,{flexDirection:"column",px:10,children:[(0,n.jsx)(c.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Tipo de propiedad"}),(0,n.jsx)(p.P,{id:"tipo_inmueble",mb:4,type:"text",rounded:"full",bg:"#fff",fontSize:"sm",color:"gray.600",onChange:e=>G(e.target.value),value:U,children:B?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("option",{value:"HABITATIONAL",children:"Todo Habitacional"}),(0,n.jsx)("option",{value:"HOUSE",children:"Casa"}),(0,n.jsx)("option",{value:"APARTMENT",children:"Departamento"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("option",{value:"",children:"Cualquiera"}),(0,n.jsx)("option",{value:"HOUSE",children:"Casa"}),(0,n.jsx)("option",{value:"APARTMENT",children:"Departamento"}),(0,n.jsx)("option",{value:"TERRAIN",children:"Terreno/Lote"}),(0,n.jsx)("option",{value:"SHOP",children:"Local"}),(0,n.jsx)("option",{value:"OFFICE",children:"Oficina"}),(0,n.jsx)("option",{value:"WAREHOUSE",children:"Bodega"}),(0,n.jsx)("option",{value:"BUILDING",children:"Edificio"}),(0,n.jsx)("option",{value:"SHOP_SHOPPING_CENTER",children:"Local Comercial"})]})})]}),(0,n.jsx)(h.r,{px:10,templateColumns:W?"repeat(3, 1fr)":"repeat(1, 1fr)",gap:0,mb:8,borderTopLeftRadius:"md",borderTopRightRadius:"md",children:E.sX.map(e=>{let{value:o,label:t}=e;return(0,n.jsx)(m.P,{py:1,px:1,bg:N.searching===t||T===o?"#002B49":"#E9E9E9",borderRadius:"md",children:(0,n.jsx)(a.z,{onClick:()=>{K(o),ej("searching",o,t)},w:"100%",borderRadius:"md",bg:N.searching===t||T===o?"#002B49":"#E9E9E9",color:N.searching===t||T===o?"#fff":"#000",fontWeight:500,_hover:{bg:"brand.400"},children:t},o)})})}),(0,n.jsxs)(u.k,{flexDirection:"column",px:10,children:[(0,n.jsx)(u.k,{children:(0,n.jsx)(c.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Precio"})}),(0,n.jsxs)(u.k,{children:[(0,n.jsx)(u.k,{w:"50%",pr:1,mb:4,children:(0,n.jsxs)(g.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(f.l,{htmlFor:"desde_prespuesto",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Desde:"}),(0,n.jsx)(b.Y2,{id:"desde_prespuesto",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",bg:"#fff",placeholder:"$ 250,000",value:Intl.NumberFormat().format(V),minValue:0,onInput:e=>J(F(e.target.value)),children:(0,n.jsx)(b.zu,{})})]})}),(0,n.jsx)(u.k,{w:"50%",pl:1,mb:4,children:(0,n.jsxs)(g.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(f.l,{htmlFor:"hasta_prespuesto",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Hasta:"}),(0,n.jsx)(b.Y2,{id:"hasta_prespuesto",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",value:Intl.NumberFormat().format(M),minValue:0,onInput:e=>{X(F(e.target.value))},children:(0,n.jsx)(b.zu,{})})]})})]})]}),(0,n.jsx)(u.k,{mb:8,px:10,children:(0,n.jsxs)(j.iR,{"aria-label":"slider-ex-4",defaultValue:0,min:0,max:15e6,onChange:e=>{X(e)},children:[(0,n.jsx)(j.Uj,{bg:"#E9E9E9",children:(0,n.jsx)(j.Ms,{bg:"#002B49"})}),(0,n.jsx)(j.gs,{boxSize:6,children:(0,n.jsx)(v.xu,{color:"#002B49",display:"flex",children:(0,n.jsx)(y.J,{as:z.RE})})})]})}),(0,n.jsxs)(u.k,{flexDirection:"column",px:10,children:[(0,n.jsx)(u.k,{children:(0,n.jsx)(c.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Superficie"})}),(0,n.jsxs)(u.k,{children:[(0,n.jsx)(u.k,{w:"50%",pr:1,mb:4,children:(0,n.jsxs)(g.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(f.l,{htmlFor:"desde_m2",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Desde m\xb2:"}),(0,n.jsx)(b.Y2,{id:"desde_m2",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",fontSize:"sm",value:ee,bg:"#fff",minValue:0,onInput:e=>$(e.target.value),children:(0,n.jsx)(b.zu,{})})]})}),(0,n.jsx)(u.k,{w:"50%",pl:1,mb:4,children:(0,n.jsxs)(g.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",bg:"#fff",borderColor:"gray.200",children:[(0,n.jsx)(f.l,{htmlFor:"hasta_m2",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Hasta m\xb2:"}),(0,n.jsx)(b.Y2,{id:"hasta_m2",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",fontSize:"sm",bg:"#fff",value:eo,minValue:0,onInput:e=>Q(e.target.value),children:(0,n.jsx)(b.zu,{})})]})})]})]}),(0,n.jsx)(u.k,{mb:8,px:10,children:(0,n.jsxs)(j.iR,{"aria-label":"slider-ex-4",defaultValue:0,min:0,max:1e4,onChange:e=>{Q(e)},children:[(0,n.jsx)(j.Uj,{bg:"#E9E9E9",children:(0,n.jsx)(j.Ms,{bg:"#002B49"})}),(0,n.jsx)(j.gs,{boxSize:6,children:(0,n.jsx)(v.xu,{color:"#002B49",display:"flex",children:(0,n.jsx)(y.J,{as:z.RE})})})]})}),(0,n.jsxs)(u.k,{flexDirection:"column",children:[(0,n.jsx)(u.k,{px:10,children:(0,n.jsx)(c.x,{fontSize:"md",fontWeight:"bold",mb:8,children:"Caracter\xedsticas"})}),(0,n.jsxs)(u.k,{mb:4,px:10,children:[(0,n.jsx)(u.k,{w:"50%",children:(0,n.jsx)(c.x,{fontSize:"md",children:"Rec\xe1maras"})}),(0,n.jsxs)(u.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(S.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===et?ev("rooms",0):ev("rooms",et-1)},icon:(0,n.jsx)(_.V,{})}),(0,n.jsx)(c.x,{fontSize:"md",children:et}),(0,n.jsx)(S.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ev("rooms",et+1)},children:(0,n.jsx)(k.d,{})})]})]}),(0,n.jsxs)(u.k,{mb:4,px:10,children:[(0,n.jsx)(u.k,{w:"50%",children:(0,n.jsx)(c.x,{fontSize:"md",children:"Estacionamiento"})}),(0,n.jsxs)(u.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(S.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===ei?ev("garage",0):ev("garage",ei-1)},icon:(0,n.jsx)(_.V,{})}),(0,n.jsx)(c.x,{fontSize:"md",children:ei}),(0,n.jsx)(S.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ev("garage",ei+1)},icon:(0,n.jsx)(k.d,{})})]})]}),(0,n.jsxs)(u.k,{mb:4,px:10,children:[(0,n.jsx)(u.k,{w:"50%",children:(0,n.jsx)(c.x,{fontSize:"md",children:"Ba\xf1os"})}),(0,n.jsxs)(u.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(S.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===en?ev("baths",0):ev("baths",en-1)},icon:(0,n.jsx)(_.V,{})}),(0,n.jsx)(c.x,{fontSize:"md",children:en}),(0,n.jsx)(S.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ev("baths",en+1)},icon:(0,n.jsx)(k.d,{})})]})]}),(0,n.jsxs)(u.k,{px:10,mb:4,children:[(0,n.jsx)(u.k,{w:"50%",children:(0,n.jsx)(c.x,{fontSize:"md",children:"Medios Ba\xf1os"})}),(0,n.jsxs)(u.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(S.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===er?ev("midBaths",0):ev("midBaths",er-1)},icon:(0,n.jsx)(_.V,{})}),(0,n.jsx)(c.x,{fontSize:"md",children:er}),(0,n.jsx)(S.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ev("midBaths",er+1)},icon:(0,n.jsx)(k.d,{})})]})]}),(0,n.jsx)(w.K,{display:"contents",children:(0,n.jsxs)(u.k,{gap:6,bg:"#EEEEEE",borderWidth:"1px",borderColor:"#C5C5C5",py:6,px:4,w:W?"416px":"300px",position:"absolute",display:"flex",top:W?"63.5vh":"64.7vh",left:"16.2%",children:[(0,n.jsx)(u.k,{w:"50%",children:(0,n.jsx)(a.z,{bg:"transparent",color:"#000",fontSize:"xs",fontWeight:"700",_hover:{color:"gray.600"},rounded:"full",borderWidth:"1px",w:"100%",borderColor:"#9A9A9A",onClick:e=>{e.preventDefault(),window.open("".concat(t||"Buscar","?type=HOUSE,TERRAIN,APARTMENT,WAREHOUSE,BUILDING,SHOP_SHOPPING_CENTER,OFFICE,SHOP,CONSULTING_ROOM&all=DEVS"),"_self")},children:"Quitar filtros"})}),(0,n.jsx)(u.k,{w:"50%",justifyContent:"end",alignItems:"center",children:(0,n.jsx)(a.z,{w:"100%",onClick:e=>{e.preventDefault(),eg()},rounded:"full",color:"gray.700",fontSize:"xs",children:"Aplicar filtros"})})]})})]})]})};o.Z=R},21572:function(e,o,t){t.d(o,{Z:function(){return T}});var n=t(85893),r=t(67294),i=t(51936),s=t(36979),l=t(31708),a=t(776),c=t(75145),d=t(11163),u=t(29222),x=t(76684),p=t(86367),h=t(88911),m=t(204),g=t(28129),f=t(18691),b=t(38267),j=t(5370),v=t(59233),S=t(96987),w=t(23100),y=t(89154),z=t(5434),_=t(7335),k=t(62207),C=t(31963),E=t(77312),F=t(44504),R=t(55819),D=t(73793),I=t(47018),W=t(56877),P=t(12774),A=t(81785);let N=e=>{let{children:o,href:t,icon:r,...i}=e;return(0,n.jsx)(u.z,{fontSize:"sm",mb:0,placeSelf:"center",...i,boxShadow:"md",borderWidth:"1px",bg:"#FFCD00",borderColor:"#FFCD00",rounded:"full",children:(0,n.jsxs)(x.K,{direction:"row",align:"center",placeSelf:"center",children:[(0,n.jsx)(p.E,{boxSize:"20px",objectFit:"cover",src:r,alt:o,loading:"lazy"}),(0,n.jsx)(h.x,{fontWeight:"semibold",fontSize:"sm",mb:0,color:"black",textAlign:"end",children:o})]})})};function O(e,o){var t=Intl.NumberFormat(o).format(11111).replace(RegExp("\\p{Number}","gu"),""),n=Intl.NumberFormat(o).format(1.1).replace(RegExp("\\p{Number}","gu"),"");return parseFloat(e.replace(RegExp("\\"+t,"g"),"").replace(RegExp("\\"+n),"."))}let L=e=>{let{typeScreen:o,city:t,view:s,setView:x,...L}=e,{onOpen:B,isOpen:T,onClose:U}=(0,_.q)(),[H,V]=(0,r.useState)("inside"),M=(0,r.useRef)(null),q=(0,r.useRef)(null),{url:Z,type:G,operation:K,code:Y,minPrice:J,maxPrice:X,minTerrain:$,maxTerrain:Q,rooms:ee,bathrooms:eo,midBathrooms:et,parking:en,bars:er,addLocation:ei,addPropertyType:es,addOperation:el,addCode:ea,addMinPrice:ec,addMaxPrice:ed,addMinTerrain:eu,addMaxTerrain:ex,addRooms:ep,addBathrooms:eh,addMidBathrooms:em,addParking:eg,addKeyword:ef,cleanFilters:eb,formatUrl:ej,formatUrlCity:ev}=(0,r.useContext)(c.D),[eS]=(0,i.ZC)(q,M),[ew,ey]=(0,r.useState)({property:"Cualquiera",valProperty:"",searching:"",valSearching:""}),ez=(0,d.useRouter)(),e_=ez.pathname.includes("guiarent")||ez.pathname.includes("PropRent");(0,r.useEffect)(()=>{ep(0),eh(0),eg(0),em(0)},[]),(0,r.useEffect)(()=>{eS&&ei(eS)},[eS]);let ek=(e,o)=>{switch(e){case"rooms":ep(o);break;case"baths":eh(o);break;case"garage":eg(o);break;case"midBaths":em(o)}},eC=e=>{var o=RegExp("^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d).+$");7===e.length&&o.test(e)?ea(e):ef(e)},eE=(e,o,t)=>{"property"===e?ey({...ew,property:t,valProperty:o}):ey({...ew,searching:t,valSearching:o})},eF=()=>{"list"===s?x("map"):x("list")};(0,r.useEffect)(()=>{let e=document.getElementById("ubicacion");e&&function(e){let o=e.addEventListener,t=(t,n)=>{if("keydown"===t){let o=n;n=t=>{let n=document.getElementsByClassName("pac-item-selected").length;if("Enter"===t.key&&!n){let t=new KeyboardEvent("keydown",{key:"ArrowDown",code:"ArrowDown",keyCode:40});o.apply(e,[t])}o.apply(e,[t])}}o.apply(e,[t,n])};e.addEventListener=t}(e)});let eR=()=>(0,n.jsx)(u.z,{w:"auto",rounded:"full",color:"#000",size:"sm",h:10,fontWeight:"semibold",_active:{bg:"brand.500"},bgColor:"brand.500",_hover:{textDecoration:"none",color:"#000",bg:"brand.500"},onClick:()=>eF(),children:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(h.x,{children:"list"===s?(0,n.jsx)("span",{children:"Ver en el mapa"}):(0,n.jsx)("span",{children:"Mostrar Lista"})}),(0,n.jsx)(p.E,{src:s?"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/mapa.webp":"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/lista.webp",color:"#000",boxSize:5,marginLeft:"5px"})]})});return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(l.r,{templateColumns:"repeat(2, 1fr)",gap:4,children:[(0,n.jsx)(a.P,{colSpan:1,textAlign:"start",zIndex:1,children:(0,n.jsx)(N,{icon:"https://boomerang.s3.us-east-2.amazonaws.com/assets/home-page/icons/buscador/filtrar.webp",onClick:B,...L,children:"Filtros"})}),(0,n.jsx)(a.P,{colSpan:1,textAlign:"end",zIndex:1,children:(0,n.jsx)(eR,{})})]}),(0,n.jsxs)(k.u_,{isCentered:!0,isOpen:T,onClose:U,scrollBehavior:H,children:[(0,n.jsx)(C.Z,{}),(0,n.jsxs)(E.h,{maxWidth:"2xl",minHeight:"mobile"===o?"92vh":"auto",marginBottom:"mobile"===o?"0":"auto",children:[(0,n.jsx)(F.x,{children:(0,n.jsx)(h.x,{fontWeight:"300",fontSize:"2xl",textAlign:"center",children:"Filtros"})}),(0,n.jsx)(R.o,{left:"mobile"===o?"5px":"auto"}),(0,n.jsxs)(D.f,{children:[(0,n.jsx)(m.k,{zIndex:1,pt:10,flexDirection:"column",children:(0,n.jsxs)(m.k,{flexDirection:"column",children:[(0,n.jsx)(h.x,{fontSize:"md",mb:4,children:"\xbfD\xf3nde quieres vivir?"}),(0,n.jsx)(g.I,{id:"ubicacion",type:"text",mb:4,ref:M,rounded:"full",bg:"#fff",placeholder:"Lugar",fontSize:"sm",color:"gray.600",onChange:e=>eC(e.target.value)})]})}),(0,n.jsxs)(m.k,{flexDirection:"column",children:[(0,n.jsx)(h.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Tipo de propiedad"}),(0,n.jsx)(f.P,{id:"tipo_inmueble",mb:4,type:"text",rounded:"full",bg:"#fff",fontSize:"sm",color:"gray.600",onChange:e=>es(e.target.value),value:G,children:e_?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("option",{value:"HABITATIONAL",children:"Todo Habitacional"}),(0,n.jsx)("option",{value:"HOUSE",children:"Casa"}),(0,n.jsx)("option",{value:"APARTMENT",children:"Departamento"})]}):(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("option",{value:"",children:"Cualquiera"}),(0,n.jsx)("option",{value:"HOUSE",children:"Casa"}),(0,n.jsx)("option",{value:"APARTMENT",children:"Departamento"}),(0,n.jsx)("option",{value:"TERRAIN",children:"Terreno/Lote"}),(0,n.jsx)("option",{value:"SHOP",children:"Local"}),(0,n.jsx)("option",{value:"OFFICE",children:"Oficina"}),(0,n.jsx)("option",{value:"WAREHOUSE",children:"Bodega"}),(0,n.jsx)("option",{value:"BUILDING",children:"Edificio"}),(0,n.jsx)("option",{value:"SHOP_SHOPPING_CENTER",children:"Local Comercial"})]})})]}),(0,n.jsx)(l.r,{templateColumns:"repeat(3, 1fr)",gap:0,mb:8,borderTopLeftRadius:"md",borderTopRightRadius:"md",children:i.sX.map(e=>{let{value:o,label:t}=e;return(0,n.jsx)(a.P,{py:1,px:1,bg:ew.searching===t?"brand.500":"#E9E9E9",borderRadius:"md",children:(0,n.jsx)(u.z,{onClick:()=>{el(o),eE("searching",o,t)},w:"100%",borderRadius:"md",bg:ew.searching===t?"brand.500":"#E9E9E9",color:"black",fontWeight:500,_hover:{bg:"brand.400"},children:t},o)})})}),(0,n.jsxs)(m.k,{flexDirection:"column",children:[(0,n.jsx)(m.k,{children:(0,n.jsx)(h.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Precio"})}),(0,n.jsxs)(m.k,{children:[(0,n.jsx)(m.k,{w:"50%",pr:1,mb:4,children:(0,n.jsxs)(b.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(j.l,{htmlFor:"desde_prespuesto",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Desde:"}),(0,n.jsx)(v.Y2,{id:"desde_prespuesto",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",bg:"#fff",placeholder:"$ 250,000",value:Intl.NumberFormat().format(J),minValue:0,onInput:e=>ec(O(e.target.value)),children:(0,n.jsx)(v.zu,{})})]})}),(0,n.jsx)(m.k,{w:"50%",pl:1,mb:4,children:(0,n.jsxs)(b.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(j.l,{htmlFor:"hasta_prespuesto",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Hasta:"}),(0,n.jsx)(v.Y2,{id:"hasta_prespuesto",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",value:Intl.NumberFormat().format(X),minValue:0,onInput:e=>{ed(O(e.target.value))},children:(0,n.jsx)(v.zu,{})})]})})]})]}),(0,n.jsx)(m.k,{mb:8,children:(0,n.jsxs)(S.iR,{"aria-label":"slider-ex-4",defaultValue:0,min:0,max:15e6,onChange:e=>{ed(e)},children:[(0,n.jsx)(S.Uj,{bg:"#E9E9E9",children:(0,n.jsx)(S.Ms,{bg:"#002B49"})}),(0,n.jsx)(S.gs,{boxSize:6,children:(0,n.jsx)(w.xu,{color:"#002B49",display:"flex",children:(0,n.jsx)(W.J,{as:z.RE})})})]})}),(0,n.jsxs)(m.k,{flexDirection:"column",children:[(0,n.jsx)(m.k,{children:(0,n.jsx)(h.x,{fontSize:"md",fontWeight:"bold",mb:4,children:"Superficie"})}),(0,n.jsxs)(m.k,{children:[(0,n.jsx)(m.k,{w:"50%",pr:1,mb:4,children:(0,n.jsxs)(b.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",borderColor:"gray.200",bg:"#fff",children:[(0,n.jsx)(j.l,{htmlFor:"desde_m2",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Desde m\xb2:"}),(0,n.jsx)(v.Y2,{id:"desde_m2",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",fontSize:"sm",value:$,bg:"#fff",minValue:0,onInput:e=>eu(e.target.value),children:(0,n.jsx)(v.zu,{})})]})}),(0,n.jsx)(m.k,{w:"50%",pl:1,mb:4,children:(0,n.jsxs)(b.NI,{rounded:"full",px:{md:"4",base:"6"},py:{md:"1",base:"2"},border:"1px",bg:"#fff",borderColor:"gray.200",children:[(0,n.jsx)(j.l,{htmlFor:"hasta_m2",mb:"0",fontSize:"xs",fontWeight:"700",color:"#4F4F4F",children:"Hasta m\xb2:"}),(0,n.jsx)(v.Y2,{id:"hasta_m2",allowMouseWheel:!0,size:{md:"sm",base:"md"},variant:"unstyled",fontSize:"sm",bg:"#fff",value:Q,minValue:0,onInput:e=>ex(e.target.value),children:(0,n.jsx)(v.zu,{})})]})})]})]}),(0,n.jsx)(m.k,{mb:8,children:(0,n.jsxs)(S.iR,{"aria-label":"slider-ex-4",defaultValue:0,min:0,max:1e4,onChange:e=>{ex(e)},children:[(0,n.jsx)(S.Uj,{bg:"#E9E9E9",children:(0,n.jsx)(S.Ms,{bg:"#002B49"})}),(0,n.jsx)(S.gs,{boxSize:6,children:(0,n.jsx)(w.xu,{color:"#002B49",display:"flex",children:(0,n.jsx)(W.J,{as:z.RE})})})]})}),(0,n.jsxs)(m.k,{flexDirection:"column",children:[(0,n.jsx)(m.k,{children:(0,n.jsx)(h.x,{fontSize:"md",fontWeight:"bold",mb:8,children:"Caracter\xedsticas"})}),(0,n.jsxs)(m.k,{mb:4,children:[(0,n.jsx)(m.k,{w:"50%",children:(0,n.jsx)(h.x,{fontSize:"md",children:"Rec\xe1maras"})}),(0,n.jsxs)(m.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(y.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===ee?ek("rooms",0):ek("rooms",ee-1)},icon:(0,n.jsx)(P.V,{})}),(0,n.jsx)(h.x,{fontSize:"md",children:ee}),(0,n.jsx)(y.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ek("rooms",ee+1)},icon:(0,n.jsx)(A.d,{})})]})]}),(0,n.jsxs)(m.k,{mb:4,children:[(0,n.jsx)(m.k,{w:"50%",children:(0,n.jsx)(h.x,{fontSize:"md",children:"Estacionamiento"})}),(0,n.jsxs)(m.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(y.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===en?ek("garage",0):ek("garage",en-1)},icon:(0,n.jsx)(P.V,{})}),(0,n.jsx)(h.x,{fontSize:"md",children:en}),(0,n.jsx)(y.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ek("garage",en+1)},icon:(0,n.jsx)(A.d,{})})]})]}),(0,n.jsxs)(m.k,{mb:4,children:[(0,n.jsx)(m.k,{w:"50%",children:(0,n.jsx)(h.x,{fontSize:"md",children:"Ba\xf1os"})}),(0,n.jsxs)(m.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(y.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===eo?ek("baths",0):ek("baths",eo-1)},icon:(0,n.jsx)(P.V,{})}),(0,n.jsx)(h.x,{fontSize:"md",children:eo}),(0,n.jsx)(y.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ek("baths",eo+1)},icon:(0,n.jsx)(A.d,{})})]})]}),(0,n.jsxs)(m.k,{mb:4,children:[(0,n.jsx)(m.k,{w:"50%",children:(0,n.jsx)(h.x,{fontSize:"md",children:"Medios Ba\xf1os"})}),(0,n.jsxs)(m.k,{w:"50%",justifyContent:"end",alignItems:"center",children:[(0,n.jsx)(y.h,{mr:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{0===et?ek("midBaths",0):ek("midBaths",et-1)},icon:(0,n.jsx)(P.V,{})}),(0,n.jsx)(h.x,{fontSize:"md",children:et}),(0,n.jsx)(y.h,{ml:2,bg:"#fff",variant:"outline",border:"1px #D6D6D6 solid",color:"#4F4F4F",size:"sm",fontSize:"8px",borderRadius:"full","aria-label":"Send email",onClick:()=>{ek("midBaths",et+1)},icon:(0,n.jsx)(A.d,{})})]})]})]})]}),(0,n.jsx)(I.m,{children:(0,n.jsxs)(l.r,{templateColumns:"repeat(2, 1fr)",gap:6,w:"100%",children:[(0,n.jsx)(a.P,{colSpan:"1",children:(0,n.jsx)(u.z,{bg:"transparent",color:"#4F4F4F",textDecoration:"underline",fontSize:"xs",fontWeight:"400",p:0,_hover:{color:"gray.400"},onClick:eb,children:"Quitar filtros"})}),(0,n.jsx)(a.P,{colSpan:"1",textAlign:"end",children:(0,n.jsx)(u.z,{onClick:e=>{e.preventDefault(),t?ev(t):ej(e_)},rounded:"full",color:"gray.700",fontSize:"xs",children:"Aplicar filtros"})})]})})]})]})]})},B=e=>{let{params:o,city:t,view:d,setView:u}=e,x=(0,r.useRef)(null),p=(0,r.useRef)(null),{operation:h,type:m,code:g,addLocation:f,addPropertyType:b,addOperation:j,addCode:v,addMinPrice:S,addMaxPrice:w,addMinTerrain:y,addMaxTerrain:z,addRooms:_,addBathrooms:k,addMidBathrooms:C,addParking:E,formatUrl:F,formatUrlCity:R}=(0,r.useContext)(c.D),[D]=(0,i.ZC)(p,x);return(0,r.useEffect)(()=>{D&&f(D)},[D]),(0,r.useEffect)(()=>{if(o.params){if(o.params.property_id)v(o.params.property_id);else{if(o.params.operation&&j(o.params.operation),o.params.type&&b(o.params.type),o.params.bathrooms&&k(o.params.bathrooms),o.params.bedrooms&&_(o.params.bedrooms),o.params.parking&&E(o.params.parking),o.params.halfBathrooms&&C(o.params.halfBathrooms),o.params.price){let e=o.params.price.split(",");S(e[0]),w(e[1])}if(o.params.ground){let e=o.params.ground.split(",");y(e[0]),z(e[1])}}}},[o]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(s.W,{maxW:"6xl",py:0,alignSelf:"center",h:"100%",placeContent:"center",children:(0,n.jsx)(l.r,{templateColumns:"repeat(2, 1fr)",gap:4,children:(0,n.jsx)(a.P,{colSpan:2,textAlign:"end",zIndex:1,children:(0,n.jsx)(L,{typeScreen:"mobile",view:d,setView:u})})})})})};var T=B}}]);