PageSourceSearch

https://www.inmobiliariaferreira.es/_next/static/chunks/app/%5Bloc…?dpl=dpl_CdWpdc1a2g1QxZamj1f8Fzd2H3Ui

js inmobiliariaferreira.es collected 2026-10-04 01:06:32 UTC 30,801 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2158],{76647:function(){},583:function(e,i,t){Promise.resolve().then(t.bind(t,79163)),Promise.resolve().then(t.bind(t,47574)),Promise.resolve().then(t.bind(t,92508)),Promise.resolve().then(t.bind(t,31808)),Promise.resolve().then(t.bind(t,30125))},48735:function(e,i,t){"use strict";t.d(i,{K:function(){return n}});var r=t(60341),s=t(78705);let n={menu:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0),pag:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(1),orden:r.Oi.withOptions({shallow:!1,clearOnDefault:!0}).withDefault("fechaSincronizacion"),dir:(0,r.jx)(["asc","desc"]).withOptions({shallow:!1,clearOnDefault:!0}).withDefault("desc"),limit:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(s.JQ),idProvincia:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0),idPoblacion:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0),idZona:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0),idTipoPromocion:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0),idFase:r.U.withOptions({shallow:!1,clearOnDefault:!0}).withDefault(0)};(0,r.Cg)(n)},47574:function(e,i,t){"use strict";t.d(i,{SearchPromotions:function(){return A}});
1var r=t(57437),s=t(96255),n=t(45168),a=t(92983),o=t(10764),l=t(91657),c=t(22744),d=t(69174),u=t(48735),f=t(12381),x=t(29827);function h(){let[{idProvincia:e,idPoblacion:i,idZona:t,idTipoPromocion:n,idFase:a},o]=(0,s.XI)(u.K),l=(0,x.NL)(),h=l.getQueryData(["provincias"]),m=null==h?void 0:h.find(i=>i.idProvincia===e),p=l.getQueryData(["poblaciones",{idProvincia:e}]),g=null==p?void 0:p.find(e=>e.idPoblacion===i),v=l.getQueryData(["zonas",{idPoblacion:i}]),j=null==v?void 0:v.find(e=>e.idZona===t),w=l.getQueryData(["tipos-promociones"]),N=null==w?void 0:w.find(e=>e.idTipoPromocion===n),b=l.getQueryData(["fases-promociones"]),y=null==b?void 0:b.find(e=>e.idFase===a);return[{idProvincia:e,idPoblacion:i,idZona:t,idTipoPromocion:n,idFase:a}].every(e=>Object.entries(e).every(e=>{let[i,t]=e;return"number"==typeof t?0===t:""===t}))?(0,r.jsx)("p",{className:"hidden text-sm text-muted-foreground md:block",children:"No hay filtros aplicados"}):(0,r.jsxs)("div",{className:"flex flex-row flex-wrap items-center gap-2 text-sm",children:[m&&(0,r.jsxs)(d.C,{variant:"outline",className:"flex flex-row items-center gap-1 font-normal",children:[null==m?void 0:m.provincia,(0,r.jsx)(f.z,{variant:"ghost",size:"icon",className:"size-6",onClick:()=>o({idProvincia:0,idPoblacion:0,idZona:0,pag:1}),children:(0,r.jsx)(c.Yjb,{className:"size-4"})})]}),g&&(0,r.jsxs)(d.C,{variant:"outline",className:"flex flex-row items-center gap-1 font-normal",children:[null==g?void 0:g.poblacion,(0,r.jsx)(f.z,{variant:"ghost",size:"icon",className:"size-6",onClick:()=>o({idPoblacion:0,idZona:0,pag:1}),children:(0,r.jsx)(c.Yjb,{className:"size-4"})})]}),j&&(0,r.jsxs)(d.C,{variant:"outline",className:"flex flex-row items-center gap-1 font-normal",children:[null==j?void 0:j.zona,(0,r.jsx)(f.z,{variant:"ghost",size:"icon",className:"size-6",onClick:()=>o({idZona:0,pag:1}),children:(0,r.jsx)(c.Yjb,{className:"size-4"})})]}),N&&(0,r.jsxs)(d.C,{variant:"outline",className:"flex flex-row items-center gap-1 font-normal",children:[null==N?void 0:N.tipoPromocion,(0,r.jsx)(f.z,{variant:"ghost",size:"icon",className:"size-6",onClick:()=>o({idTipoPromocion:0,pag:1}),children:(0,r.jsx)(c.Yjb,{className:"size-4"})})]}),y&&(0,r.jsxs)(d.C,{variant:"outline",className:"flex flex-row items-center gap-1 font-normal",children:[null==y?void 0:y.fase,(0,r.jsx)(f.z,{variant:"ghost",size:"icon",className:"size-6",onClick:()=>o({idFase:0,pag:1}),children:(0,r.jsx)(c.Yjb,{className:"size-4"})})]})]})}var m=t(84232),p=t(20016),g=t(2265),v=t(32768),j=t(32060),w=t(75763),N=t(93448);function b(e){let{orden:i,dir:t,onChangeOrden:n}=e,[{operacion:a,orden:o}]=(0,s.XI)(w.K),[l,d]=(0,g.useState)(a);return(0,r.jsxs)("div",{className:"flex flex-row items-center justify-end gap-2",children:[(0,r.jsx)("span",{className:"hidden text-sm text-muted-foreground md:block",children:"Ordenar por:"}),(0,r.jsxs)(j.h_,{children:[(0,r.jsxs)(j.$F,{className:"flex flex-row items-center gap-1 text-sm font-medium focus:outline-none",children:[(0,r.jsx)(v.CgR,{className:"size-4"}),function(){if("fechaSincronizacion"===i)return"asc"===t?"M\xe1s antiguos primero":"M\xe1s recientes primero"}()]}),(0,r.jsxs)(j.AW,{children:[(0,r.jsxs)(j.Ju,{className:"flex flex-row items-center gap-2 border-b border-gray-200 bg-gray-100 text-sm font-normal text-gray-400",children:[(0,r.jsx)(c.z1$,{className:"size-4"}),"Por fecha"]}),(0,r.jsx)(j.Xi,{className:(0,N.cn)("cursor-pointer text-sm font-light","fechaSincronizacion"===i&&"desc"===t&&"bg-gray-700 text-gray-100"),onClick:()=>{n({orden:"fechaSincronizacion",dir:"desc"})},children:"M\xe1s recientes primero"}),(0,r.jsx)(j.Xi,{className:(0,N.cn)("cursor-pointer text-sm font-light","fechaSincronizacion"===i&&"asc"===t&&"bg-gray-700 text-gray-100"),onClick:()=>{n({orden:"fechaSincronizacion",dir:"asc"})},children:"M\xe1s antiguos primero"})]})]})]})}var y=t(33145),O=t(79820),P=t(78673),S=t(43611),z=t(61796),C=t(57240),k=t(27648);let D=e=>(0,r.jsxs)(O.Zb,{className:"flex w-full max-w-sm flex-col justify-between overflow-hidden rounded-lg text-sm hover:opacity-80",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)(k.default,{href:"/promocion/".concat(e.idPromocion),className:"block h-[250px] w-full",children:(0,r.jsx)(y.default,{src:e.fotoUrl||"/img/image-off.svg",width:400,height:250,priority:!0,alt:"Imagen de propiedad",style:{width:"400px",height:"250px"},className:(0,N.cn)("h-[250px] w-[450px] cursor-pointer object-cover",!e.fotoUrl&&"object-contain opacity-10")})}),(0,r.jsx)(P.OpenGallery,{tipo:"promocion",id:e.idPromocion})]}),(0,r.jsxs)("div",{className:"flex-grow px-4 py-3",children:[(0,r.jsxs)("div",{className:"mb-2 flex items-baseline justify-between",children:[(0,r.jsx)("span",{className:(0,N.cn)("font-semibold"),children:e.promocion}
1),(0,r.jsxs)("span",{className:"font-semibold",children:["Ref: ",e.idPromocion]})]}),(0,r.jsxs)("div",{className:"flex w-full flex-row items-center justify-between",children:[(0,r.jsx)("p",{className:"capitalize",children:(0,r.jsx)("span",{className:"",children:" ".concat(e.zona.toLowerCase())})}),0!==e.nViviendas&&(0,r.jsxs)("p",{className:"flex flex-row items-center gap-1 text-muted-foreground",children:[(0,r.jsx)("span",{children:"Viviendas:"}),e.nViviendas&&(0,r.jsx)("span",{className:"",children:"".concat(e.nViviendas)})]})]}),(0,r.jsx)("div",{className:"capitalize text-primary",children:(0,r.jsxs)("div",{className:"flex w-full flex-col items-start justify-start gap-1 xl:flex-row xl:items-center xl:justify-between",children:[(0,r.jsx)("p",{className:"uppercase",children:"".concat(e.poblacion.toLowerCase(),", ").concat(e.provincia.toUpperCase())}),(0,r.jsxs)("p",{className:"flex min-w-[50px] flex-row items-center justify-end gap-1 lowercase text-muted-foreground",children:[(0,r.jsx)(S.Z,{className:"size-4"}),(0,z.B)(e.fechaSincronizacion,new Date,{addSuffix:!1,locale:C.es}).replace("alrededor de ","")]})]})})]})]});function E(e){let{isLoading:i,items:t}=e;return(0,r.jsx)("div",{className:(0,N.cn)(i&&"opacity-40"),children:(0,r.jsx)("div",{className:"xs:grid-cols-2 grid gap-4 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-3 xl:grid-cols-3 2xl:grid-cols-4",children:null==t?void 0:t.map((e,i)=>(0,r.jsx)(D,{...e},"promocion-".concat(i,"}")))})})}function A(e){var i,t,c;let{initialData:d}=e,[{menu:f,pag:x,orden:g,dir:v,limit:j,idProvincia:w,idPoblacion:N,idZona:y,idTipoPromocion:O,idFase:P},S]=(0,s.XI)(u.K),{data:z,isFetching:C,isLoading:k,isError:D,isSuccess:A,isPlaceholderData:T}=function(e,i){let{query:t}=e;return(0,p.a)({queryKey:["buscar-promociones",[t]],queryFn:async()=>{var e,i;let r=await m.L.api.promociones.$get({query:t});if(!r.ok)throw Error(null!==(i=(await r.json()).error)&&void 0!==i?i:"Error buscando promociones'}}");let s=await r.json();return null===(e=s.data)||void 0===e||e.totalItems,s.data},initialData:i})}({query:{idProvincia:w?w.toString():void 0,idPoblacion:N?N.toString():void 0,idZona:y?y.toString():void 0,idTipoPromocion:O?O.toString():void 0,idFase:P?P.toString():void 0,pag:x?x.toString():"1",limit:j?j.toString():void 0,orden:null!=g?g:"fechaSincronizacion",dir:null!=v?v:"desc"}},d),$=C||k;return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"flex flex-col-reverse gap-1 md:flex-row-reverse md:items-center md:justify-between md:gap-2",children:[(0,r.jsxs)("div",{className:"mt-2 flex min-h-8 flex-row flex-wrap items-center justify-start gap-2 md:justify-between",children:[(0,r.jsx)(b,{orden:g,dir:v,onCh
1angeOrden:function(e){let{orden:i,dir:t}=e;S({orden:i,dir:t,pag:1})}}),(0,r.jsx)("span",{className:"md:blockmx-2 hidden text-muted-foreground",children:"|"}),(0,r.jsx)(o.c,{limit:j,onChangeLimit:function(e){S({limit:e,pag:1})}})]}),(0,r.jsx)("div",{className:"mt-2 flex flex-row items-center gap-2 pt-2",children:(0,r.jsx)(h,{})})]}),(0,r.jsxs)("div",{children:[k&&(0,r.jsx)("div",{children:"Buscando resultados..."}),D&&(0,r.jsx)("div",{children:"Ha ocurrido un error realizando la b\xfasqueda"}),A&&(0,r.jsxs)("div",{className:"mt-4",children:[0===z.items.length&&(0,r.jsxs)("div",{className:"flex min-h-[200px] w-full flex-col items-center justify-center gap-12 text-2xl text-muted-foreground md:min-h-[300px] lg:min-h-[400px] xl:min-h-[500px]",children:[(0,r.jsx)(n.j$5,{className:"size-24"}),"No se encontraron resultados"]}),z.items.length>0&&(0,r.jsx)(E,{isLoading:$||T,items:z.items})]})]}),(0,r.jsxs)("div",{className:"mt-4 grid grid-cols-1 gap-4 border-t pt-2 sm:grid-cols-2",children:[(0,r.jsx)(l.j,{totalItems:null!==(i=null==z?void 0:z.totalItems)&&void 0!==i?i:0,pag:null!=x?x:1,totalPaginas:null!==(t=null==z?void 0:z.totalPages)&&void 0!==t?t:1}),(0,r.jsx)(a.i,{isLoading:$,currentPage:null!=x?x:1,onChangePage:function(e){S({pag:e}),setTimeout(()=>{window.scrollTo({top:0,behavior:"smooth"})},300)},totalPages:null!==(c=null==z?void 0:z.totalPages)&&void 0!==c?c:1})]})]})}},92508:function(e,i,t){"use strict";t.d(i,{ToggleFilters:function(){return l}});var r=t(57437),s=t(45202),n=t(12381),a=t(48735),o=t(96255);function l(){let[e,i]=(0,o.XI)(a.K);return(0,r.jsxs)(n.z,{size:"sm",variant:"outline",className:"flex lg:hidden",onClick:()=>i({menu:1}),children:[(0,r.jsx)(s.KNx,{className:"size-4"}),"Mostrar filtros"]})}},3939:function(e,i,t){"use strict";t.d(i,{An:function(){return s}});var r=t(57437);function s(e){return(0,r.jsxs)("svg",{...e,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.jsx)("line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65"}),(0,r.jsx)("line",{x1:"11",x2:"11",y1:"8",y2:"14"}),(0,r.jsx)("line",{x1:"8",x2:"14",y1:"11",y2:"11"})]})}t(2265)},71925:function(e,i,t){"use strict";t.d(i,{N:function(){return c}});var r=t(57437),s=t(82442),n=t(50784),a=t(68032);t(83522),t(80320);var o=t(33145);function l(e){let{slide:i,offset:t,rect:n}=e,{on:{click:a},carousel:{imageFit:l}}=(0,s.RD)(),{currentIndex:c}=(0,s.oc)(),d=(0,s.QB)(i)&&(0,s.VI)(i,l);if(!(0,s.QB)(i)||"number"!=typeof i.width||"number"!=typeof i.height)return;let u=d?n.width:Math.round(Math.min(n.width,n.height/i.height*i.width)),f=d?n.height:Math.round(Math.min(n.height,n.width/i.width*i.height));return(0,r.jsx)("div",{style:{position:"relative",width:u,height:f},children:(0,r.jsx)(o.default,{fill:!0,alt:"",src:i,loading:"eager",draggable:!1,placeholder:i.blurDataURL?"blur":void 0,style:{objectFit:d?"cover":"contain",cursor:a?"pointer":void 0},sizes:"".concat(Math.ceil(u/window.innerWidth*100),"vw"),onClick:0===t?()=>null==a?void 0:a({index:c}):void 0})})}function c(e){let{open:i,setOpen:t,images:o}=e;return(0,r.jsx)(s.ZP,{open:i,close:()=>t(!1),slides:[...o.map(e=>({src:e.src,width:e.width,height:e.height}))],render:{slide:l},plugins:[n.Z,a.Z],carousel:{padding:0}})}},30125:function(e,i,t){"use strict";t.d(i,{FiltersPromotions:function(){return T}});var r=t(57437),s=t(45202),n=t(96255),a=t(99376),o=t(42586),l=t(91032),c=t(32489),d=t(48735),u=t(12381),f=t(45168),x=t(93448);function h(e){let{variant:i}=e,[t,s]=(0,n.XI)(d.K),a=()=>{s({pag:1,idProvincia:0,idPoblacion:0,idZona:0,idTipoPromocion:0,idFase:0,orden:"fechaSincronizacion",dir:"desc"})};return(0,r.jsx)(u.z,{className:(0,x.cn)("flex flex-col bg-white text-red-600","icon"===i?"rounded-full border border-red-300 hover:border-red-600 hover:bg-white hover:text-red-600":"w-full"),variant:"outline","aria-label":"Borrar filtros",size:"icon"===i?"icon":"sm",onClick:()=>{a()},children:(0,r.jsxs)("p",{className:"flex flex-row items-center gap-2 text-sm",children:[(0,r.jsx)(f.QgK,{className:"size-6"}),"large"===i&&"BORRAR FILTROS"]})})}var m=t(2265),p=t(22549),g=t(75060),v=t(84154),j=t(63253),w=t(69140),N=t(15291),b=t(98928);function y(){let{data:e,isLoading:i,isFetching:t,isSuccess:s,isError:a}=(0,b.E)(),[{idProvincia:o},l]=(0,n.XI)(d.K);if(a)return(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Error cargando provincias"});if(i||t)return(0,r.jsx)(w.O,{className:"h-10 w-full"});if(s){var c;return(0,r.jsx)("div",{className:"flex flex-col gap-2 text-xs",children:(0,r.jsxs)(N.Ph,{disabled:i||t,value:null!==(c=null==o?void 0:o.toString())&&void 0!==c?c:"-",onValueChange:e=>l({idProvincia:"-"===e?0:parseInt(e),idPoblacion:0,idZona:0,pag:1}),children:[(0,r.jsx)(N.i4,{className:"focus:ring-0 focus:ring-transparent focus:ring-offset-0",children:(0,r.jsx)(N.ki,{placeholder:"TODAS",className:"text-xs text-gray-500"})}),(0,r.jsxs)(N.Bw,{children:[(0,r.jsx)(N.Ql,{value:"0",className:"text-xs",children:"TODAS"},""),null==e?void 0:e.map(e=>(0,r.jsx)(N.Ql,{value:e.idProvincia.toString(),className:"text-xs",children:e.provincia},"provincia-".concat(e.idProvincia)))]})]})})}}var O=t(12446);function P(e){let{idProvincia:i}=e,{data:t,isLoading:s,isFetching:a,isSuccess:o,isError:l}=(0,O.o)(null!=i?i:0),[{idPoblacion:c},u]=(0,n.XI)(d.K);if(l)return(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Error cargando poblaciones"});if(s||a)return(0,r.jsx)(w.O,{className:"h-10 w-full"});if(o){var f;return(0,r.jsx)("div",{className:"flex flex-col gap-2 text-xs",children:(0,r.jsxs)(N.Ph,{disabled:s||a,value:null!==(f=null==c?void 0:c.toString())&&void 0!==f?f:"-",onValueChange:e=>u({idPoblacion:"-"===e?0:parseInt(e),idZona:0,pag:1}),children:[(0,r.jsx)(N.i4,{className:"focus:ring-0 focus:ring-transparent focus:ring-offset-0",children:(0,r.jsx)(N.ki,{placeholder:"TODAS"})}),(0,r.jsxs)(N.Bw,{children:[(0,r.jsx)(N.Ql,{value:"0",className:"text-xs",children:"TODAS"},""),null==t?void 0:t.map(e=>(0,r.jsx)(N.Ql,{value:e.idPoblacion.toString(),className:"text-xs",children:e.poblacion},"poblacion-".concat(e.idPoblacion)))]})]})})}}var S=t(18963);function z(e){let{idPoblacion:i}=e,{data:t,isLoading:s,isFetching:a,isSuccess:o,isError:l}=(0,S.V)(null!=i?i:0),[{idZona:c},u]=(0,n.XI)(d.K);if(l)return(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Error cargando zonas"});if(s||a)return(0,r.jsx)(w.O,{className:"h-10 w-full"});if(o){var f;return(0,r.jsx)("div",{className:"flex flex-col gap-2 text-xs",children:(0,r.jsxs)(N.Ph,{disabled:s||a,value:null!==(f=null==c?void 0:c.toString())&&void 0!==f?f:"-",onValueChange:e=>u({idZona:"-"===e?0:parseInt(e),pag:1}),children:[(0,r.jsx)(N.i4,{className:"focus:ring-0 focus:ring-transparent focus:ring-offset-0",children:(0,r.jsx)(N.ki,{placeholder:"TODAS"})}),(0,r.jsxs)(N.Bw,{children:[(0,r.jsx)(N.Ql,{value:"0",className:"text-xs",children:"TODAS"},""),null==t?void 0:t.map(e=>(0,r.jsx)(N.Ql,{value:e.idZona.toString(),className:"text-xs",children:e.zona},"zona-".concat(e.idZona)))]})]})})}}var C=t(84232),k=t(20016);function D(){let{data:e,isLoading:i,isFetching:t,isSuccess:s,isError:a}=(0,k.a)({queryKey:["tipos-promociones"],queryFn:async()=>{let e=await C.L.api["tipos-promocion"].$get();if(!e.ok){var i;throw Error(null!==(i=(await e.json()).error)&&void 0!==i?i:"Error consultando tipos de promoci\xf3n")}
1return(await e.json()).data},staleTime:36e5}),[{idTipoPromocion:o},l]=(0,n.XI)(d.K);if(a)return(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Error cargando tipos de promoci\xf3n"});if(i||t)return(0,r.jsx)(w.O,{className:"h-10 w-full"});if(s){var c;return(0,r.jsx)("div",{className:"flex flex-col gap-2 text-xs",children:(0,r.jsxs)(N.Ph,{disabled:i||t,value:null!==(c=null==o?void 0:o.toString())&&void 0!==c?c:"-",onValueChange:e=>l({idTipoPromocion:"-"===e?0:parseInt(e),pag:1}),children:[(0,r.jsx)(N.i4,{className:"focus:ring-0 focus:ring-transparent focus:ring-offset-0",children:(0,r.jsx)(N.ki,{placeholder:"TODOS"})}),(0,r.jsxs)(N.Bw,{children:[(0,r.jsx)(N.Ql,{value:"0",className:"text-xs",children:"TODOS"},""),null==e?void 0:e.map(e=>(0,r.jsx)(N.Ql,{value:e.idTipoPromocion.toString(),className:"text-xs",children:e.tipoPromocion},e.idTipoPromocion))]})]})})}}function E(){let{data:e,isLoading:i,isFetching:t,isSuccess:s,isError:a}=(0,k.a)({queryKey:["fases-promociones"],queryFn:async()=>{let e=await C.L.api.fases.$get();if(!e.ok){var i;throw Error(null!==(i=(await e.json()).error)&&void 0!==i?i:"Error consultando fases")}return(await e.json()).data},staleTime:36e5}),[{idFase:o},l]=(0,n.XI)(d.K);if(a)return(0,r.jsx)("p",{className:"text-xs text-red-500",children:"Error cargando fases"});if(i||t)return(0,r.jsx)(w.O,{className:"h-10 w-full"});if(s){var c;return(0,r.jsx)("div",{className:"flex flex-col gap-2 text-xs",children:(0,r.jsxs)(N.Ph,{disabled:i||t,value:null!==(c=null==o?void 0:o.toString())&&void 0!==c?c:"-",onValueChange:e=>l({idFase:"-"===e?0:parseInt(e),pag:1}),children:[(0,r.jsx)(N.i4,{className:"focus:ring-0 focus:ring-transparent focus:ring-offset-0",children:(0,r.jsx)(N.ki,{placeholder:"TODOS"})}),(0,r.jsxs)(N.Bw,{children:[(0,r.jsx)(N.Ql,{value:"0",className:"text-xs",children:"TODOS"},""),null==e?void 0:e.map(e=>(0,r.jsx)(N.Ql,{value:e.idFase.toString(),className:"text-xs",children:e.fase},e.idFase))]})]})})}}function A(e){let{multiple:i}=e,[t,s]=(0,m.useState)(["item-localizacion","item-tipo","item-fase"]),[{idProvincia:a,idPoblacion:o}]=(0,n.XI)(d.K);function l(e){i?s(i=>Array.isArray(i)&&i.includes(e)?i.filter(i=>i!==e):[...null!=i?i:[],e]):s(e)}return(0,r.jsx)("div",{className:"grid grid-cols-1",children:(0,r.jsxs)(p.UQ,{type:"single",className:"w-full -space-y-2 lg:space-y-0",defaultValue:"item-localizacion",children:[(0,r.jsxs)(p.Qd,{value:"item-localizacion",children:[(0,r.jsx)(p.o4,{onClick:()=>l("item-localizacion"),children:(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 text-sm",children:[(0,r.jsx)(v.m$q,{className:"size-4"}),"LOCALIZACI\xd3N"]})}),(0,r.jsxs)(p.vF,{className:"grid gap-2",children:[(0,r.jsx)(g._,{className:"text-sm text-muted-foreground",children:"Provincia"}),(0,r.jsx)(y,{}),(0,r.jsx)(g._,{className:"mt-2 text-sm text-muted-foreground",children:"Poblaci\xf3n"}),(0,r.jsx)(P,{idProvincia:a}),(0,r.jsx)(g._,{className:"mt-2 text-sm text-muted-foreground",children:"Zona"}),(0,r.jsx)(z,{idPoblacion:o})]})]}),(0,r.jsxs)(p.Qd,{value:"item-tipo",children:[(0,r.jsx)(p.o4,{onClick:()=>l("item-tipo"),children:(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 text-sm uppercase",children:[(0,r.jsx)(j._3Z,{className:"size-4"}),"TIPO DE PROMOCI\xd3N"]})}),(0,r.jsx)(p.vF,{className:"",children:(0,r.jsx)(D,{})})]}),(0,r.jsxs)(p.Qd,{value:"item-fase",children:[(0,r.jsx)(p.o4,{onClick:()=>l("item-fase"),children:(0,r.jsxs)("div",{className:"flex flex-row items-center gap-2 text-sm uppercase",children:[(0,r.jsx)(j._3Z,{className:"size-4"}),"FASE"]})}),(0,r.jsx)(p.vF,{className:"",children:(0,r.jsx)(E,{})})]})]})})}function T(){(0,o.useLocale)(),(0,a.useRouter)();let[{menu:e},i]=(0,n.XI)(d.K);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"sticky top-0 flex flex-col px-4 py-3",children:[(0,r.jsxs)("div",{className:"flex flex-row items-center justify-between",children:[(0,r.jsxs)("h3",{className:"flex flex-row items-center gap-2 text-xl font-bold xl:text-2xl",children:[(0,r.jsx)(s.KNx,{className:"size-5"}),"Filtros"]}),(0,r.jsx)("div",{className:"-mr-2",children:(0,r.jsx)(h,{variant:"icon"})})]}),(0,r.jsx)("div",{className:"mt-1 flex flex-col gap-2 sm:mt-2 md:mt-0 xl:mt-2",children:(0,r.jsx)(A,{multiple:!0})})]}),(0,r.jsx)("div",{className:"flex lg:hidden",children:(0,r.jsx)(l.yo,{open:1===e,onOpenChange:()=>{setTimeout(()=>{i({menu:0})},300)},children:(0,r.jsxs)(l.ue,{side:"left",showClose:!1,children:[(0,r.jsx)(l.Tu,{children:(0,r.jsx)(l.bC,{children:(0,r.jsxs)("div",{className:"-ml-2 -mr-3 flex flex-row items-center justify-between",children:[(0,r.jsxs)("p",{className:"flex flex-row items-center gap-2 text-xl font-semibold",children:[(0,r.jsx)(s.KNx,{className:"size-5"}),"Filtros promociones"]}),(0,r.jsx)(u.z,{variant:"ghost",size:"icon",className:"",onClick:()=>i({menu:0}),children:(0,r.jsx)(c.Z,{className:"size-4"})})]})})}),(0,r.jsx)("div",{className:"mt-1.5 flex h-full flex-col justify-between",children:(0,r.jsx)("div",{className:"flex-grow lg:pt-4",children:(0,r.jsx)(A,{multiple:!1})})})]})})})]})}},12381:function(e,i,t){"use strict";t.d(i,{d:function(){return l},z:function(){return c}});var r=t(57437),s=t(2265),n=t(37053),a=t(77712),o=t(93448);let l=(0,a.j)("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),c=s.forwardRef((e,i)=>{let{className:t,variant:s,size:a,asChild:c=!1,...d}=e,u=c?n.g7:"button";return(0,r.jsx)(u,{className:(0,o.cn)(l({variant:s,size:a,className:t})),ref:i,...d})});c.displayName="Button"},75060:function(e,i,t){"use strict";t.d(i,{_:function(){return c}});var r=t(57437),s=t(2265),n=t(6394),a=t(77712),o=t(93448);let l=(0,a.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=s.forwardRef((e,i)=>{let{className:t,...s}=e;return(0,r.jsx)(n.f,{ref:i,className:(0,o.cn)(l(),t),...s})});c.displayName=n.f.displayName},84232:function(e,i,t){"use strict";t.d(i,{L:function(){return n}});var r=t(24898),s=t(81463);t.n(s)().config({path:".env.local"});let n=(0,r.hc)("https://inmobiliariaferreira.es")},93448:function(e,i,t){"use strict";t.d(i,{cn:function(){return n}});var r=t(61994),s=t(53335);function n(){for(var e=arguments.length,i=Array(e),t=0;t<e;t++)i[t]=arguments[t];return(0,s.m6)((0,r.W)(i))}},6394:function(e,i,t){"use strict";t.d(i,{f:function(){return o}});var r=t(2265),s=t(66840),n=t(57437),a=r.forwardRef((e,i)=>(0,n.jsx)(s.WV.label,{...e,ref:i,onMouseDown:i=>{var t;i.target.closest("button, input, select, textarea")||(null===(t=e.onMouseDown)||void 0===t||t.call(e,i),!i.defaultPrevented&&i.detail>1&&i.preventDefault())}}));a.displayName="Label";var o=a},24898:function(e,i,t){"use strict";t.d(i,{hc:function(){return u}});var r=t(21709),s=(e,i)=>(e=e.replace(/\/+$/,"")+"/")+(i=i.replace(/^\/+/,"")),n=(e,i)=>{for(let[t,r]of Object.entries(i)){let i=RegExp("/:"+t+"(?:{[^/]+})?\\??");e=e.replace(i,r?`/${r}`:"")}return e},a=(e,i)=>{switch(i){case"ws":return e.replace(/^http/,"ws");case"http":return e.replace(/^ws/,"http")}},o=e=>/^https?:\/\/[^\/]+?\/index$/.test(e)?e.replace(/\/index$/,"/"):e.replace(/\/index$/,"");function l(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}var c=(e,i)=>new Proxy(()=>{},{get(t,r){if("string"==typeof r&&"then"!==r)return c(e,[...i,r])},apply:(t,r,s)=>e({path:i,args:s})}),d=class{url;method;queryParams=void 0;pathParams={};rBody;cType=void 0;constructor(e,i){this.url=e,this.method=i}fetch=async(e,i)=>{if(e){if(e.query){for(let[i,t]of Object.entries(e.query))if(void 0!==t){if(this.queryParams||=new URLSearchParams,Array.isArray(t))for(let e of t)this.queryParams.append(i,e);else this.queryParams.set(i,t)}}if(e.form){let i=new FormData;for(let[t,r]of Object.entries(e.form))if(Array.isArray(r))for(let e of r)i.append(t,e);else i.append(t,r);this.rBody=i}e.json&&(this.rBody=JSON.stringify(e.json),this.cType="application/json"),e.param&&(this.pathParams=e.param)}let t=this.method.toUpperCase(),s={...e?.header??{},..."function"==typeof i?.headers?await i.headers():i?.headers?i.headers:{}};if(e?.cookie){let i=[];for(let[t,s]of Object.entries(e.cookie))i.push((0,r.qC)(t,s,{path:"/"}));s.Cookie=i.join(",")}this.cType&&(s["Content-Type"]=this.cType);let a=new Headers(s??void 0),l=this.url;l=n(l=o(l),this.pathParams),this.queryParams&&(l=l+"?"+this.queryParams.toString());let c=!("GET"===(t=this.method.toUpperCase())||"HEAD"===t);return(i?.fetch||fetch)(l,{body:c?this.rBody:void 0,method:t,headers:a,...i?.init})}},u=(e,i)=>c(function t(r){let o=[...r.path];if("toString"===o[o.length-1])return"name"===o[o.length-2]?o[o.length-3]||"":t.toString();if("valueOf"===o[o.length-1])return"name"===o[o.length-2]?o[o.length-3]||"":t;let c="";if(/^\$/.test(o[o.length-1])){let e=o.pop();e&&(c=e.replace(/^\$/,""))}let u=s(e,o.join("/"));if("url"===c)return new URL(r.args[0]&&r.args[0].param?n(u,r.args[0].param):u);if("ws"===c){let e=new URL(a(r.args[0]&&r.args[0].param?n(u,r.args[0].param):u,"ws")),t=r.args[0]?.query;return t&&Object.entries(t).forEach(([i,t])=>{Array.isArray(t)?t.forEach(t=>e.searchParams.append(i,t)):e.searchParams.set(i,t)}),((...e)=>i?.webSocket!==void 0&&"function"==typeof i.webSocket?i.webSocket(...e):new WebSocket(...e))(e.toString())}let f=new d(u,c);if(c){let e=function e(i,t){if(!l(i)&&!l(t))return t;let r={...i};for(let i in t){let s=t[i];l(r[i])&&l(s)?r[i]=e(r[i],s):r[i]=s}return r}(i??={},{...r.args[1]??{}});return f.fetch(r.args[0],e)}return f},[])},21709:function(e,i,t){"use strict";t.d(i,{Qc:function(){return a},qC:function(){return l}});var r=t(59040),s=/^[\w!#$%&'*.^`|~+-]+$/,n=/^[ !#-:<-[\]-~]*$/,a=(e,i)=>e.trim().split(";").reduce((e,t)=>
1{let a=(t=t.trim()).indexOf("=");if(-1===a)return e;let o=t.substring(0,a).trim();if(i&&i!==o||!s.test(o))return e;let l=t.substring(a+1).trim();return l.startsWith('"')&&l.endsWith('"')&&(l=l.slice(1,-1)),n.test(l)&&(e[o]=(0,r._s)(l)),e},{}),o=(e,i,t={})=>{let r=`${e}=${i}`;if(e.startsWith("__Secure-")&&!t.secure)throw Error("__Secure- Cookie must have Secure attributes");if(e.startsWith("__Host-")){if(!t.secure)throw Error("__Host- Cookie must have Secure attributes");if("/"!==t.path)throw Error('__Host- Cookie must have Path attributes with "/"');if(t.domain)throw Error("__Host- Cookie must not have Domain attributes")}if(t&&"number"==typeof t.maxAge&&t.maxAge>=0){if(t.maxAge>3456e4)throw Error("Cookies Max-Age SHOULD NOT be greater than 400 days (34560000 seconds) in duration.");r+=`; Max-Age=${Math.floor(t.maxAge)}`}if(t.domain&&"host"!==t.prefix&&(r+=`; Domain=${t.domain}`),t.path&&(r+=`; Path=${t.path}`),t.expires){if(t.expires.getTime()-Date.now()>3456e7)throw Error("Cookies Expires SHOULD NOT be greater than 400 days (34560000 seconds) in the future.");r+=`; Expires=${t.expires.toUTCString()}`}if(t.httpOnly&&(r+="; HttpOnly"),t.secure&&(r+="; Secure"),t.sameSite&&(r+=`; SameSite=${t.sameSite.charAt(0).toUpperCase()+t.sameSite.slice(1)}`),t.partitioned){if(!t.secure)throw Error("Partitioned Cookie must have Secure attributes");r+="; Partitioned"}return r},l=(e,i,t)=>o(e,i=encodeURIComponent(i),t)},59040:function(e,i,t){"use strict";t.d(i,{AA:function(){return f},Bx:function(){return x},DW:function(){return d},FB:function(){return s},KB:function(){return l},Ph:function(){return p},Ub:function(){return u},_s:function(){return v},uo:function(){return r},vl:function(){return g}});var r=e=>{let i=e.split("/");return""===i[0]&&i.shift(),i},s=e=>{let{groups:i,path:t}=n(e);return a(r(t),i)},n=e=>{let i=[];return e=e.replace(/\{[^}]+\}/g,(e,t)=>{let r=`@${t}`;return i.push([r,e]),r}),{groups:i,path:e}},a=(e,i)=>{for(let t=i.length-1;t>=0;t--){let[r]=i[t];for(let s=e.length-1;s>=0;s--)if(e[s].includes(r)){e[s]=e[s].replace(r,i[t][1]);break}}return e},o={},l=e=>{if("*"===e)return"*";let i=e.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);return i?(o[e]||(i[2]?o[e]=[e,i[1],RegExp("^"+i[2]+"$")]:o[e]=[e,i[1],!0]),o[e]):null},c=e=>{try{return decodeURI(e)}catch{return e.replace(/(?:%[0-9A-Fa-f]{2})+/g,e=>{try{return decodeURI(e)}catch{return e}})}},d=e=>{let i=e.url,t=i.indexOf("/",8),r=t;for(;r<i.length;r++){let e=i.charCodeAt(r);if(37===e){let e=i.indexOf("?",r),s=i.slice(t,-1===e?void 0:e);return c(s.includes("%25")?s.replace(/%25/g,"%2525"):s)}if(63===e)break}return i.slice(t,r)},u=e=>{let i=d(e);return i.length>1&&"/"===i[i.length-1]?i.slice(0,-1):i},f=(...e)=>{let i="",t=!1;for(let r of e)"/"===i[i.length-1]&&(i=i.slice(0,-1),t=!0),"/"!==r[0]&&(r=`/${r}`),"/"===r&&t?i=`${i}/`:"/"!==r&&(i=`${i}${r}`),"/"===r&&""===i&&(i="/");return i},x=e=>{if(!e.match(/\:.+\?$/))return null;let i=e.split("/"),t=[],r="";return i.forEach(e=>{if(""===e||/\:/.test(e)){if(/\:/.test(e)){if(/\?/.test(e)){0===t.length&&""===r?t.push("/"):t.push(r);let i=e.replace("?","");r+="/"+i,t.push(r)}else r+="/"+e}}else r+="/"+e}),t.filter((e,i,t)=>t.indexOf(e)===i)},h=e=>/[%+]/.test(e)?(-1!==e.indexOf("+")&&(e=e.replace(/\+/g," ")),/%/.test(e)?v(e):e):e,m=(e,i,t)=>{let r;if(!t&&i&&!/[%+]/.test(i)){let t=e.indexOf(`?${i}`,8);for(-1===t&&(t=e.indexOf(`&${i}`,8));-1!==t;){let r=e.charCodeAt(t+i.length+1);if(61===r){let r=t+i.length+2,s=e.indexOf("&",r);return h(e.slice(r,-1===s?void 0:s))}if(38==r||isNaN(r))return"";t=e.indexOf(`&${i}`,t+1)}if(!(r=/[%+]/.test(e)))return}let s={};r??=/[%+]/.test(e);let n=e.indexOf("?",8);for(;-1!==n;){let i;let a=e.indexOf("&",n+1),o=e.indexOf("=",n);o>a&&-1!==a&&(o=-1);let l=e.slice(n+1,-1===o?-1===a?void 0:a:o);r&&(l=h(l)),n=a,""!==l&&(-1===o?i="":(i=e.slice(o+1,-1===a?void 0:a),r&&(i=h(i))),t?(s[l]&&Array.isArray(s[l])||(s[l]=[]),s[l].push(i)):s[l]??=i)}return i?s[i]:s},p=m,g=(e,i)=>m(e,i,!0),v=decodeURIComponent}},function(e){e.O(0,[5416,8218,6051,9212,6950,522,5706,614,7037,9379,8540,4116,5878,8276,2972,2589,1100,7178,3986,1315,2971,2117,1744],function(){return e(e.s=583)}
1),_N_E=e.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.