1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[75],{4075:function(e,a,l){l.r(a),l.d(a,{default:function(){return e0}});var t=l(5893),n=l(7294),s=l(5675),i=l.n(s),r=e=>{let{color:a="#3C3C43",width:l=20,height:n=20,background:s="#F2F2F7"}=e;return(0,t.jsxs)("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("mask",{id:"path-1-inside-1_1693_31488",fill:"white",children:(0,t.jsx)("path",{d:"M14.489 22.2227L15.5468 21.1338L11.3157 16.7782H23.5557V15.2227L11.3157 15.2227L15.5468 10.8671L14.489 9.77821L8.44455 16.0004L14.489 22.2227Z"})}),(0,t.jsx)("path",{d:"M14.489 22.2227L15.5468 21.1338L11.3157 16.7782H23.5557V15.2227L11.3157 15.2227L15.5468 10.8671L14.489 9.77821L8.44455 16.0004L14.489 22.2227Z",fill:"#B27344"}),(0,t.jsx)("path",{d:"M14.489 22.2227L-3.87335 40.0604L14.489 58.9628L32.8513 40.0604L14.489 22.2227ZM15.5468 21.1338L33.9091 38.9715L51.2372 21.1338L33.9091 3.29605L15.5468 21.1338ZM11.3157 16.7782L11.3157 -8.82179L-49.2434 -8.82179L-7.04669 34.6159L11.3157 16.7782ZM23.5557 16.7782L23.5557 42.3782H49.1557V16.7782L23.5557 16.7782ZM23.5557 15.2227L49.1557 15.2227V-10.3773H23.5557L23.5557 15.2227ZM11.3157 15.2227L-7.04669 -2.61506L-49.2433 40.8227L11.3157 40.8227L11.3157 15.2227ZM15.5468 10.8671L33.9091 28.7048L51.2372 10.8671L33.9091 -6.97062L15.5468 10.8671ZM14.489 9.77821L32.8513 -8.0595L14.489 -26.9619L-3.87335 -8.0595L14.489 9.77821ZM8.44455 16.0004L-9.9178 -1.83728L-27.2459 16.
10004L-9.9178 33.8382L8.44455 16.0004ZM32.8513 40.0604L33.9091 38.9715L-2.81558 3.29605L-3.87336 4.38494L32.8513 40.0604ZM33.9091 3.29605L29.678 -1.05951L-7.04669 34.6159L-2.81557 38.9715L33.9091 3.29605ZM11.3157 42.3782H23.5557L23.5557 -8.82179H11.3157L11.3157 42.3782ZM49.1557 16.7782V15.2227L-2.04434 15.2227V16.7782L49.1557 16.7782ZM23.5557 -10.3773H11.3157L11.3157 40.8227H23.5557L23.5557 -10.3773ZM29.678 33.0604L33.9091 28.7048L-2.81557 -6.97062L-7.04669 -2.61506L29.678 33.0604ZM33.9091 -6.97062L32.8513 -8.0595L-3.87335 27.6159L-2.81557 28.7048L33.9091 -6.97062ZM-3.87335 -8.0595L-9.9178 -1.83728L26.8069 33.8382L32.8513 27.6159L-3.87335 -8.0595ZM-9.9178 33.8382L-3.87335 40.0604L32.8513 4.38494L26.8069 -1.83728L-9.9178 33.8382Z",fill:"white",mask:"url(#path-1-inside-1_1693_31488)"}),(0,t.jsx)("circle",{cx:"16",cy:"16",r:"15",transform:"matrix(1 0 0 -1 0 32)",stroke:"white",strokeWidth:"2"})]})},o=e=>{let{color:a="#3C3C43",width:l=20,height:n=20,background:s="#F2F2F7"}=e;return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M2.04175 7.125H10.2917",stroke:"white",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M13.2917 7.125H16.2917",stroke:"white",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M7.29175 16.125V7.125",stroke:"white",strokeWidth:"0.9"}),(0,t.jsx)("path",{d:"M7.29175 4.875V1.875",stroke:"white",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M12.9167 12.75C11.4167 12.75 9.91675 13.9667 9.91675 16.125H8.04175C5.21332 16.125 3.79911 16.125 2.92043 15.2463C2.04175 14.3677 2.04175 12.9534 2.04175 10.125V7.875C2.04175 5.04657 2.04175 3.63236 2.92043 2.75368C3.79911 1.875 5.21332 1.875 8.04175 1.875H10.2917C13.1201 1.875 14.5344 1.875 15.413 2.75368C16.2917 3.63236 16.2917 5.04657 16.2917 7.875V13.3824C16.2917 14.8971 15.0638 16.125 13.5491 16.125",stroke:"white",strokeWidth:"0.9",strokeLinecap:"round",strokeLinejoin:"round"})]})},c=e=>{let{color:a="#3C3C43",width:l=20,height:n=20,background:s="#F2F2F7"}=e;return(0,t.jsxs)("svg",{width:"19",height:"18",viewBox:"0 0 19 18",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M11.6375 8.91563C12.9594 8.91563 14.0563 7.84688 14.0563 6.49688C14.0563 5.14688 12.9875 4.07812 11.6375 4.07812C10.2875 4.07812 9.21875 5.20313 9.21875 6.525C9.21875 7.84688 10.3156 8.91563 11.6375 8.91563ZM11.6375 5.37188C12.2562 5.37188 12.7906 5.87813 12.7906 6.525C12.7906 7.17188 12.2844 7.67813 11.6375 7.67813C10.9906 7.67813 10.4844 7.17188 10.4844 6.525C10.4844 5.87813 10.9906 5.37188 11.6375 5.37188Z",fill:"white"}),(0,t.jsx)("path",{d:"M15.3221 0.506348H3.67832C2.72207 0.506348 1.93457 1.29385 1.93457 2.2501V15.7501C1.93457 16.7063 2.72207 17.522 3.70645 17.522H15.3221C16.2783 17.522 17.0939 16.7345 17.0939 15.7501V2.2501C17.0658 1.29385 16.2783 0.506348 15.3221 0.506348ZM3.67832 1.77197H15.2939C15.5752 1.77197 15.8002 1.99697 15.8002 2.27822V12.0938L13.7471 10.4063C13.1564 9.92822 12.3127 9.95635 11.7783 10.4907L9.47207 12.7688L6.51895 10.1251C5.95645 9.61885 5.1127 9.61885 4.5502 10.1251L3.2002 11.3345V2.2501C3.2002 1.96885 3.4252 1.77197 3.67832 1.77197ZM15.3221 16.2563H3.67832C3.39707 16.2563 3.17207 16.0313 3.17207 15.7501V13.022L5.36582 11.0251C5.4502 10.9407 5.5627 10.9407 5.64707 11.0251L9.0502 14.0626C9.16269 14.1751 9.33145 14.2313 9.47207 14.2313C9.64082 14.2313 9.78145 14.1751 9.92207 14.0345L12.6502 11.3345C12.7346 11.2501 12.8471 11.2501 12.9314 11.3345L15.7721 13.697V15.7501C15.8002 16.0313 15.5752 16.2563 15.3221 16.2563Z",fill:"white"})]})},d={src:"/_next/static/media/planta.52500217.png",height:745,width:1005,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAtklEQVR42mM4unM7EwMQXDx5ouD2lSszv3z6Igrif/z4iePDh4+MDCBw/tjR5PNHDv+/dOrE//v37hiCxJ48esTKAAM3zp2dfe7Qwf/XL5z///rlqxCQ2Icfv5nhCk4dPth76dTJ//du3Pj/9tWbVpDY01vXBa+cPq0MVnDs0MGZF4AKnty79//FsydLQWInT13Qu3nuDDdYwdsXL4NePn7S+fzJk5wrV06ag8TmnXrMzsDAwAAANu1iaYmmi2cAAAAASUVORK5CYII=",blurWidth:8,blurHeight:6},u={src:"/_next/static/media/recorrido.5d84ab86.jpg",height:669,width:966,blurDataURL:"data:image/jpeg;
1base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAoKCgoKCgsMDAsPEA4QDxYUExMUFiIYGhgaGCIzICUgICUgMy03LCksNy1RQDg4QFFeT0pPXnFlZXGPiI+7u/sBCgoKCgoKCwwMCw8QDhAPFhQTExQWIhgaGBoYIjMgJSAgJSAzLTcsKSw3LVFAODhAUV5PSk9ecWVlcY+Ij7u7+//CABEIAAYACAMBIgACEQEDEQH/xAAnAAEBAAAAAAAAAAAAAAAAAAAABAEBAAAAAAAAAAAAAAAAAAAAAv/aAAwDAQACEAMQAAAArBf/xAAdEAACAgEFAAAAAAAAAAAAAAACEQEEIQADBRIy/9oACAEBAAE/AOUpWAsdCPbZFHmFGE8a/8QAFhEAAwAAAAAAAAAAAAAAAAAAAAFB/9oACAECAQE/AKz/xAAWEQADAAAAAAAAAAAAAAAAAAAAAUH/2gAIAQMBAT8AiP/Z",blurWidth:8,blurHeight:6},p=l(6100),x=()=>(0,t.jsx)("svg",{width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M10.1666 4.35714L4.83325 6.64286M4.83325 8.35714L10.1666 10.6429M4.83325 7.5C4.83325 8.60457 3.93782 9.5 2.83325 9.5C1.72868 9.5 0.833252 8.60457 0.833252 7.5C0.833252 6.39543 1.72868 5.5 2.83325 5.5C3.93782 5.5 4.83325 6.39543 4.83325 7.5ZM14.1666 3.5C14.1666 4.60457 13.2712 5.5 12.1666 5.5C11.062 5.5 10.1666 4.60457 10.1666 3.5C10.1666 2.39543 11.062 1.5 12.1666 1.5C13.2712 1.5 14.1666 2.39543 14.1666 3.5ZM14.1666 11.5C14.1666 12.6046 13.2712 13.5 12.1666 13.5C11.062 13.5 10.1666 12.6046 10.1666 11.5C10.1666 10.3954 11.062 9.5 12.1666 9.5C13.2712 9.5 14.1666 10.3954 14.1666 11.5Z",stroke:"white",strokeWidth:"1.5",strokeLinecap:"round"})}),m=l(8045),h=l(1379);let v=e=>{let{color:a="white",width:l=56,height:n=56,background:s="#F2F2F7"}=e;return(0,t.jsxs)("svg",{width:l,height:n,viewBox:"0 0 56 56",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M35 21C35 17.134 31.8661 14 28 14C24.1339 14 21 17.134 21 21C21 24.8661 24.1339 28 28 28C31.8661 28 35 24.8661 35 21Z",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M51.3332 28.0003C51.3332 15.1137 40.8864 4.66699 27.9998 4.66699C15.1132 4.66699 4.6665 15.1137 4.6665 28.0003C4.6665 40.8869 15.1132 51.3337 27.9998 51.3337C40.8864 51.3337 51.3332 40.8869 51.3332 28.0003Z",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,t.jsx)("path",{d:"M39.6668 39.6667C39.6668 33.2234 34.4434 28 28.0002 28C21.5568 28 16.3335 33.2234 16.3335 39.6667",stroke:a,strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})};
1var C=l(9173),f=e=>{let{idUnidad:a}=e,{t:l}=(0,m.$G)("development"),{unitsList:n}=(0,h.Z)(),s=n.find(e=>e.id==a),{isMobile:i}=(0,C.Z)(),r=n.filter(e=>e.idPrototipo==(null==s?void 0:s.idPrototipo)),o=r.filter(e=>"DISPONIBLE"==e.status),c=[...r.filter(e=>"DISPONIBLE"!=e.status&&"BLOQUEADO"!=e.status),...o];return(0,t.jsx)("div",{className:"p-3",children:(0,t.jsxs)("div",{className:"text-white",children:[(0,t.jsx)("h2",{className:"text-base font-bold",children:l("available_fractions")}),(0,t.jsxs)("p",{className:"text-xs",children:[o.length," ",l("available_units")]}),(0,t.jsx)("div",{className:"grid grid-cols-8 md:grid-cols-4 gap-1 md:gap-3 w-full max-w-[350px] my-3",children:c.map(e=>(0,t.jsx)("div",{className:"cursor-pointer",children:(0,t.jsx)(v,{color:"DISPONIBLE"!=e.status?"#E06F6B":"white",width:i?40:70,height:i?40:70},e.id)},e.id))})]})})},j=l(9919),g=l(1163),A=l(1569),L=l(1417),b=e=>{let[a,l]=(0,n.useState)(null),[t,s]=(0,n.useState)(null),i=(0,g.useRouter)(),{development:r,medias:o,clusters:c}=(0,j.CG)(e=>e.corporate),{unitsList:d}
1=(0,h.Z)(),[u,p]=(0,n.useState)(null),[x,m]=(0,n.useState)(null);(0,n.useEffect)(()=>{var a;let t=d.find(a=>a.id==e),n=null==r?void 0:null===(a=r.prototipos)||void 0===a?void 0:a.find(e=>e.id===(null==t?void 0:t.idPrototipo));t&&(l(t),n&&s(n))},[i.query,r,d]),(0,n.useEffect)(()=>{let e=[(0,A.cG)({id:null==t?void 0:t.imagenRef,medias:o})],l=a&&(0,L.Yt)(a);if(l&&(null==l?void 0:l.length)===0){m(e),p(e[0]);return}e=[],null==l||l.forEach(a=>{null==e||e.unshift((0,A.cG)({id:null==a?void 0:a.image,medias:o}))}),m(e),p((0,A.cG)({id:null==t?void 0:t.imagenRef,medias:o}))},[a,t]);let v=(null==c?void 0:c.find(e=>e.id===(null==a?void 0:a.idCluster)))||null;return{currenUnit:a,currentPrototipe:t,thumbnails:x,featuredImage:u,setFeaturedImage:p,currentCluster:v}},w=l(2261),Z=l(9304);l(889),l(9087),l(1306);var M=l(419),N=l(486),y=e=>{let{imagenes:a,propRef:l}=e;return(0,n.useEffect)(()=>{var e;if(null===(e=l.current)||void 0===e?void 0:e.swiper){let e=l.current.swiper,a=document.querySelector(".propPrevArrow"),t=document.querySelector(".propNextArrow"),n=document.querySelector(".propPag");a&&t&&(a.addEventListener("click",()=>e.slidePrev()),t.addEventListener("click",()=>e.slideNext())),n&&(e.params.pagination.el=n,e.pagination.init(),e.pagination.render(),e.pagination.update())}},[]),(0,t.jsxs)("div",{className:"relative w-full h-full",children:[(0,t.jsx)(w.tq,{ref:l,spaceBetween:24,loop:!0,pagination:{el:".propPag",clickable:!0},navigation:!1,modules:[Z.tl,Z.W_],slidesPerView:1,breakpoints:M.KT,children:null==a?void 0:a.map((e,a)=>(0,t.jsx)(w.o5,{children:(0,t.jsx)(i(),{src:e,alt:"Thumbnail ".concat(a+1),className:"w-full h-[413px] object-cover rounded-[7px]",width:770,height:770})},a))}),(0,t.jsx)("span",{className:"propPrevArrow absolute cursor-pointer -rotate-90 top-1/2 -left-5 w-9 h-9 z-10 -mt-8 rounded-full bg-white flex justify-center items-center",children:(0,t.jsx)(N.Z,{})}),(0,t.jsx)("span",{className:"propNextArrow absolute cursor-pointer rotate-90 top-1/2 -right-5 w-9 h-9 z-10 -mt-8 rounded-full bg-white flex justify-center items-center",children:(0,t.jsx)(N.Z,{})}),(0,t.jsx)("div",{className:"propPag flex justify-center gap-[5px] pt-8 pb-4"}),(0,t.jsx)("style",{children:"\n .info .propPag .swiper-pagination-bullet{\n width: 8px;\n height: 8px;\n opacity: 1;\n background: #FBFBFB2B;\n margin: 0;\n }\n .info .propPag .swiper-pagination-bullet.swiper-pagination-bullet-active{\n background: #FFFFFF;\n }\n "})]})},E=l(4163),_=l(1703),k=()=>{let{currentUnit:e}=(0,E.K)(),{corporate:a,development:l}=(0,j.CG)(e=>e.corporate),n=(0,_.wk)({corporate:a,development:l,unit:e});return(0,t.jsx)("span",{className:"px-[9px] py-[2px] rounded-full text-[8px] leading-relaxed",style:{backgroundColor:"#".concat(n)},children:null==e?void 0:e.status})},F=()=>(0,t.jsx)("svg",{width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M5.13642 11.4059C4.84352 11.6988 4.84352 12.1736 5.13642 12.4665C5.42931 12.7594 5.90418 12.7594 6.19708 12.4665L5.13642 11.4059ZM12.8637 5.79986C13.1566 5.50697 13.1566 5.03209 12.8637 4.7392C12.5709 4.44631 12.096 4.44631 11.8031 4.7392L12.8637 5.79986ZM6.08325 4.93616C5.66904 4.93616 5.33325 5.27194 5.33325 5.68616C5.33325 6.10037 5.66904 6.43616 6.08325 6.43616V4.93616ZM6.58325 6.43616C6.99747 6.43616 7.33325 6.10037 7.33325 5.68616C7.33325 5.27194 6.99747 4.93616 6.58325 4.93616V6.43616ZM6.08325 5.43616C5.66904 5.43616 5.33325 5.77194 5.33325 6.18616C5.33325 6.60037 5.66904 6.93616 6.08325 6.93616V5.43
1616ZM6.58325 6.93616C6.99747 6.93616 7.33325 6.60037 7.33325 6.18616C7.33325 5.77194 6.99747 5.43616 6.58325 5.43616V6.93616ZM11.4166 10.2695C11.0024 10.2695 10.6666 10.6053 10.6666 11.0195C10.6666 11.4337 11.0024 11.7695 11.4166 11.7695V10.2695ZM11.9166 11.7695C12.3308 11.7695 12.6666 11.4337 12.6666 11.0195C12.6666 10.6053 12.3308 10.2695 11.9166 10.2695V11.7695ZM11.4166 10.7695C11.0024 10.7695 10.6666 11.1053 10.6666 11.5195C10.6666 11.9337 11.0024 12.2695 11.4166 12.2695V10.7695ZM11.9166 12.2695C12.3308 12.2695 12.6666 11.9337 12.6666 11.5195C12.6666 11.1053 12.3308 10.7695 11.9166 10.7695V12.2695ZM8.33342 0.519531C7.9192 0.519531 7.58342 0.855318 7.58342 1.26953C7.58342 1.68374 7.9192 2.01953 8.33342 2.01953V0.519531ZM9.66675 2.01953C10.081 2.01953 10.4167 1.68374 10.4167 1.26953C10.4167 0.855318 10.081 0.519531 9.66675 0.519531V2.01953ZM17.0834 7.9362C17.0834 7.52198 16.7476 7.1862 16.3334 7.1862C15.9192 7.1862 15.5834 7.52198 15.5834 7.9362H17.0834ZM15.5834 9.26953C15.5834 9.68375 15.9192 10.0195 16.3334 10.0195C16.7476 10.0195 17.0834 9.68375 17.0834 9.26953H15.5834ZM8.33342 15.1862C7.9192 15.1862 7.58342 15.522 7.58342 15.9362C7.58342 16.3504 7.9192 16.6862 8.33342 16.6862V15.1862ZM9.66675 16.6862C10.081 16.6862 10.4167 16.3504 10.4167 15.9362C10.4167 15.522 10.081 15.1862 9.66675 15.1862V16.6862ZM2.41675 7.9362C2.41675 7.52198 2.08096 7.1862 1.66675 7.1862C1.25253 7.1862 0.916748 7.52198 0.916748 7.9362H2.41675ZM0.916748 9.26953C0.916748 9.68375 1.25253 10.0195 1.66675 10.0195C2.08096 10.0195 2.41675 9.68375 2.41675 9.26953H0.916748ZM3.48658 15.573L3.82707 14.9048L3.48658 15.573ZM2.02986 14.1163L2.69811 13.7758L2.69811 13.7758L2.02986 14.1163ZM15.9699 14.1163L15.3016 13.7758L15.3016 13.7758L15.9699 14.1163ZM14.5132 15.573L14.1727 14.9048L14.1727 14.9048L14.5132 15.573ZM14.5132 1.63297L14.1727 2.30122V2.30122L14.5132 1.63297ZM15.9699 3.08969L15.3016 3.43018V3.43018L15.9699 3.08969ZM3.48658 1.63297L3.82707 2.30122L3.48658 1.63297ZM2.02986 3.08969L2.69811 3.43018L2.02986 3.08969ZM5.68098 2.02688C6.09511 2.01895 6.42441 1.6768 6.41648 1.26266C6.40856 0.848526 6.06641 0.519228 5.65227 0.527156L5.68098 2.02688ZM0.924047 5.25531C0.916118 5.66945 1.24542 6.0116 1.65955 6.01953C2.07369 6.02745 2.41584 5.69816 2.42377 5.28402L0.924047 5.25531ZM2.42377 11.922C2.41584 11.5078 2.07369 11.1785 1.65955 11.1865C1.24542 11.1944 0.916118 11.5365 0.924047 11.9507L2.42377 11.922ZM5.65227 16.6788C6.0664 16.6867 6.40856 16.3575 6.41648 15.9433C6.42441 15.5292 6.09511 15.187 5.68098 15.1791L5.65227 16.6788ZM12.3188 15.1791C11.9047 15.187 11.5754 15.5292 11.5833 15.9433C11.5912 16.3575 11.9334 16.6867 12.3475 16.6788L12.3188 15.1791ZM17.0757 11.9507C17.0836 11.5365 16.7543 11.1944 16.3402 11.1865C15.9261 11.1785 15.5839 11.5078 15.576 11.922L17.0757 11.9507ZM15.576 5.28402C15.5839 5.69816 15.9261 6.02745 16.3402 6.01953C16.7543 6.0116 17.0836 5.66945 17.0757 5.25531L15.576 5.28402ZM12.3475 0.527156C11.9334 0.519228 11.5912 0.848526 11.5833 1.26266C11.5754 1.6768 11.9047 2.01895 12.3188 2.02688L12.3475 0.527156ZM6.19708 12.4665L12.8637 5.79986L11.8031 4.7392L5.13642 11.4059L6.19708 12.4665ZM6.25008 5.9362C6.25008 5.89017 6.28739 5.85286 6.33342 5.85286V7.35286C7.11582 7.35286 7.75008 6.7186 7.75008 5.9362H6.25008ZM6.33342 5.85286C6.37944 5.85286 6.41675 5.89017 6.41675 5.9362H4.91675C4.91675 6.7186 5.55101 7.35286 6.33342 7.35286V5.85286ZM6.41675 5.9362C6.41675 5.98222 6.37944 6.01953 6.33342 6.01953V4.51953C5.55101 4.51953 4.91675 5.15379 4.91675 5.9362H6.41675ZM6.33342 6.01953C6.28739 6.01953 6.25008 5.98222 6.25008 5.9362H7.75008C7.75008 5.1538 7.11582 4.51953 6.33342 4.51953V6.01953ZM6.08325 6.43616H6.58325V4.93616H6.08325V6.43616ZM6.08325 6.93616H6.58325V5.43616H6.08325V6.93616ZM11.5834 11.2695C11.5834 11.2235 11.6207 11.1862 11.6667 11.1862V12.6862C12.4492 12.6862 13.0834 12.0519 13.0834 11.2695H11.5834ZM11.6667 11.1862C11.7128 11.1862 11.7501 11.2235 11.7501 11.2695H10.2501C10.2501 12.0519 10.8843 12.6862 11.6667 12.6862V11.1862ZM11.7501 11.2695C11.7501 11.3156 11.7128 11.3529 11.6667 11.3529V9.85287C10.8843 9.85287 10.2501 10.4871 10.2501 11.2695H11.7501ZM11.6667 11.3529C11.6207 11.3529 11.5834 11.3156 11.5834 11.2695H13.0834C13.0834 10.4871 12.4492 9.85287 11.6667 9.85287V11.3529ZM11.4166 11.7695H11.9166V10.2695H11.4166V11.7695ZM11.4166 12.2695H11.9166V10.7695H11.4166V12.2695ZM8.33342 2.01953H9.66675V0.519531H8.33342V2.01953ZM15.5834 7.9362V9.26953H17.0834V7.9362H1
15.5834ZM8.33342 16.6862H9.66675V15.1862H8.33342V16.6862ZM0.916748 7.9362L0.916748 9.26953H2.41675L2.41675 7.9362H0.916748ZM3.82707 14.9048C3.34098 14.6571 2.94578 14.2619 2.69811 13.7758L1.3616 14.4568C1.75308 15.2251 2.37776 15.8498 3.14608 16.2413L3.82707 14.9048ZM15.3016 13.7758C15.054 14.2619 14.6588 14.6571 14.1727 14.9048L14.8537 16.2413C15.622 15.8498 16.2467 15.2251 16.6382 14.4568L15.3016 13.7758ZM14.1727 2.30122C14.6588 2.54889 15.054 2.94409 15.3016 3.43018L16.6382 2.74919C16.2467 1.98087 15.622 1.35619 14.8537 0.964711L14.1727 2.30122ZM3.14608 0.964712C2.37776 1.35619 1.75308 1.98087 1.3616 2.74919L2.69811 3.43018C2.94578 2.94409 3.34098 2.54889 3.82707 2.30122L3.14608 0.964712ZM5.65227 0.527156C4.62903 0.546743 3.83429 0.614055 3.14608 0.964712L3.82707 2.30122C4.17613 2.12337 4.65183 2.04658 5.68098 2.02688L5.65227 0.527156ZM2.42377 5.28402C2.44347 4.25491 2.52026 3.77923 2.69811 3.43018L1.3616 2.74919C1.01095 3.43738 0.943636 4.23211 0.924047 5.25531L2.42377 5.28402ZM0.924047 11.9507C0.943636 12.9739 1.01095 13.7686 1.3616 14.4568L2.69811 13.7758C2.52026 13.4267 2.44347 12.9511 2.42377 11.922L0.924047 11.9507ZM5.68098 15.1791C4.65183 15.1594 4.17613 15.0826 3.82707 14.9048L3.14608 16.2413C3.83429 16.5919 4.62903 16.6592 5.65227 16.6788L5.68098 15.1791ZM12.3475 16.6788C13.3707 16.6592 14.1655 16.5919 14.8537 16.2413L14.1727 14.9048C13.8236 15.0826 13.3479 15.1594 12.3188 15.1791L12.3475 16.6788ZM15.576 11.922C15.5563 12.9511 15.4795 13.4267 15.3016 13.7758L16.6382 14.4568C16.9888 13.7686 17.0561 12.9739 17.0757 11.9507L15.576 11.922ZM17.0757 5.25531C17.0561 4.23211 16.9888 3.43738 16.6382 2.74919L15.3016 3.43018C15.4795 3.77923 15.5563 4.25491 15.576 5.28402L17.0757 5.25531ZM12.3188 2.02688C13.3479 2.04658 13.8236 2.12337 14.1727 2.30122L14.8537 0.964712C14.1655 0.614056 13.3707 0.546743 12.3475 0.527156L12.3188 2.02688Z",fill:"white"})}),V=()=>(0,t.jsx)("svg",{width:"16",height:"14",viewBox:"0 0 16 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,t.jsx)("path",{d:"M14.6666 13.0329C15.0808 13.0329 15.4166 12.6971 15.4166 12.2829C15.4166 11.8687 15.0808 11.5329 14.6666 11.5329V13.0329ZM2.08325 1.61621C2.08325 1.202 1.74747 0.866211 1.33325 0.866211C0.919038 0.866211 0.583252 1.202 0.583252 1.61621H2.08325ZM2.78928 11.9922L3.12977 11.324H3.12977L2.78928 11.9922ZM1.6239 10.8269L0.955646 11.1673L1.6239 10.8269ZM7.56895 5.18525L8.09928 4.65492L7.56895 5.18525ZM9.76422 7.38051L9.23389 7.91084L9.76422 7.38051ZM10.2356 7.38051L10.7659 7.91084L10.766 7.91084L10.2356 7.38051ZM14.5302 4.14654C14.8231 3.85365 14.8231 3.37877 14.5302 3.08588C14.2374 2.79299 13.7625 2.79299 13.4696 3.08588L14.5302 4.14654ZM3.46959 7.75255C3.1767 8.04544 3.1767 8.52031 3.46959 8.81321C3.76248 9.1061 4.23736 9.1061 4.53025 8.81321L3.46959 7.75255ZM7.09755 5.18525L7.62788 5.71558H7.62788L7.09755 5.18525ZM14.6666 11.5329H5.59992V13.0329H14.6666V11.5329ZM2.08325 8.01621V1.61621H0.583252V8.01621H2.08325ZM5.59992 11.5329C4.84081 11.5329 4.31658 11.5323 3.90953 11.499C3.51124 11.4665 3.29163 11.4064 3.12977 11.324L2.44878 12.6605C2.85735 12.8687 3.29633 12.9539 3.78738 12.9941C4.26968 13.0335 4.86556 13.0329 5.59992 13.0329V11.5329ZM0.583252 8.01621C0.583252 8.75057 0.582669 9.34645 0.622074 9.82875C0.662195 10.3198 0.747471 10.7588 0.955646 11.1673L2.29216 10.4864C2.20968 10.3245 2.14963 10.1049 2.11709 9.7066C2.08384 9.29955 2.08325 8.77532 2.08325 8.01621H0.583252ZM3.12977 11.324C2.76913 11.1402 2.47591 10.847 2.29216 10.4864L0.955646 11.1673C1.28321 11.8102 1.8059 12.3329 2.44878 12.6605L3.12977 11.324ZM7.03862 5.71558L9.23389 7.91084L10.2945 6.85018L8.09928 4.65492L7.03862 5.71558ZM10.766 7.91084L14.5302 4.14654L13.4696 3.08588L9.70529 6.85018L10.766 7.91084ZM4.53025 8.81321L7.62788 5.71558L6.56722 4.65492L3.46959 7.75255L4.53025 8.81321ZM9.23389 7.91084C9.65696 8.33391 10.3429 8.3339 10.7659 7.91084L9.70529 6.85018C9.86801 6.68746 10.1318 6.68746 10.2945 6.85018L9.23389 7.91084ZM8.09928 4.65492C7.67622 4.23185 6.99029 4.23185 6.56722 4.65492L7.62788 5.71558C7.46516 5.8783 7.20134 5.87829 7.03862 5.71558L8.09928 4.65492Z",fill:"white"})}),B=()=>{var e,a,l,n;let{t:s}=(0,m.$G)("common"),{currentCluster:i}=(0,E.K)();return console.log(i),(0,t.jsxs)("div",{className:"text-sm text-white font-medium",children:[(0,t.jsxs)("p",{children:[s("down_payment"),": ",null==i?void 0:null===(e=i.condicionesFinanciamiento)||void 0===e?void 0:e.enganche,"%"]}),(0,t.jsxs)("p",{children:[s("deferred_payment"),": ",null==i?void 0:null===(a=i.condicionesFinanciamiento)||void 0===a?void 0:a.financiamiento,"%"]}),(0,t.jsxs)("p",{children:[s("monthly_payments"),": ",null==i?void 0:null===(l=i.condicionesFinanciamiento)||void 0===l?void 0:l.mesesSinIntereses," ",s("months")," "]}),(0,t.jsxs)("p",{children:[s("against_delivery"),": ",null==i?void 0:null===(n=i.condicionesFinanciamiento)||void 0===n?void 0:n.contraEntrega,"%"]})]})},H=l(5236),S=l(5152);let I=l.n(S)()(()=>Promise.resolve().then(l.bind(l,450)),{loadableGenerated:{webpack:()=>[450]}}),P=e=>{let{item:a}=e;return(0,t.jsx)("option",{value:a.value,children:a.label})};var D=e=>{let{t:a}=(0,m.$G)("common"),{items:l,name:n,label:s,onChange:i,className:r=" font-ProximaNova",placeholder:o=a("select_option"),selectClassName:c="",simpleSelect:d=!1,selectTrans
1parent:u=!1,...p}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:r,children:[s&&(0,t.jsx)(I,{htmlFor:n,children:a(s)}),(0,t.jsxs)("select",{className:"".concat(u?"bg-transparent":"bg-white"," focus:border-blue-500 hover:shadow-lg text-[#9C9E9F] focus:ring-blue-500 block w-full h-11 pl-5 pr-8\n ").concat(d?"":"border border-[#DFE4EA] text-md rounded-md"," ").concat(c," custom-s"),id:n,name:n,onChange:i,...p,children:[(0,t.jsx)("option",{defaultValue:"",value:"",className:"text-md",children:o}),null==l?void 0:l.map((e,a)=>(0,t.jsx)(P,{item:e},a))]})]})})};let G=[{value:0,label:"0%"},{value:10,label:"10%"},{value:20,label:"20%"},{value:30,label:"30%"},{value:40,label:"40%"},{value:50,label:"50%"},{value:60,label:"60%"},{value:70,label:"70%"},{value:80,label:"80%"},{value:90,label:"90%"},{value:100,label:"100%"}],R=Array.from({length:36},(e,a)=>({value:a+1,label:String(a+1)}));var O=l(109),T=l(458),Q=l(7556),K=l(7955);let W=async e=>{let{data:a}=e;a.fechaAlta=new Date;let l=await (0,O.ET)((0,O.hJ)(K.db,T.v.CORPORATIVOS,Q.q,T.v.FICHAS),a);return{...a,id:l.id}};var z=l(2063);let U=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return new Promise(a=>{setTimeout(()=>{a()},1e3*e)})},q=e=>{let{fichaId:a}=e;return"https://live.mappen.ws/peninsula/fichas/ficha.php?idFicha=".concat(a)};var Y=e=>{let{t:a}=e,{currentCurrency:l,currencys:t}=(0,j.CG)(e=>e.ui),{development:s}=(0,j.CG)(e=>e.corporate),{currentUnit:i}=(0,E.K)(),{user:r}=(0,j.CG)(e=>
1e.auth),[o,c]=(0,n.useState)(void 0),[d,u]=(0,n.useState)(0),[p,x]=(0,n.useState)(0),[m,h]=(0,n.useState)(0),[v,C]=(0,n.useState)(!1),f=()=>{if(!p||!(null==i?void 0:i.precio))return;let e=((null==i?void 0:i.precio)||0)*(d/100);h(((null==i?void 0:i.precio)-e)/p)},g=async()=>{if(!(null==r?void 0:r.id)||!(null==i?void 0:i.id))return;if(!p||!d)return(0,z.kw)(a("missing_data"));if(v)return;if(o)return window.open(q({fichaId:(null==o?void 0:o.id)||""}));let e={idUnidad:null==i?void 0:i.id,idUsuario:null==r?void 0:r.id,meses:p.toString(),porcentaje:d.toString(),precio:(null==i?void 0:i.precio)||0,divisa:l||t.find(e=>e.codigo===(0,A.zC)((null==i?void 0:i.divisa)?i:s))||null};try{C(!0);let l=await W({data:e});await U(1.5),c(l),(0,z.ah)(a("ficha_created_successfully")),window.open(q({fichaId:l.id}))}catch(e){console.log(e),(0,z.kw)(a("error_creating_ficha"))}finally{C(!1)}};return(0,n.useEffect)(()=>{f()},[d,p]),{enganche:d,mesesFinanciamiento:p,totalMensual:m,setEnganche:u,setMesesFinanciamiento:x,handleCreateFicha:g,loading:v,ficha:o}},$=l(8160),J=()=>{let{t:e}=(0,m.$G)("common"),{t:a}=(0,m.$G)("toast"),{currentCurrency:l,currencys:n}=(0,j.CG)(e=>e.ui),{development:s}=(0,j.CG)(e=>e.corporate),{enganche:i,mesesFinanciamiento:r,totalMensual:o,setEnganche:c,setMesesFinanciamiento:d,handleCreateFicha:u,loading:x,ficha:h}=Y({t:a});return(0,t.jsxs)("div",{className:"flex flex-col gap-[18px]",children:[(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-9",children:[(0,t.jsx)(D,{name:"enganche",placeholder:"Seleccionar",label:e("total_down_payment"),className:"text-white",selectTransparent:!0,value:i,onChange:e=>c(Number(e.target.value)),items:G}),(0,t.jsx)(D,{name:"enganche",placeholder:"Seleccionar",label:e("months_of_financing"),className:"text-white",selectTransparent:!0,value:r,onChange:e=>d(Number(e.target.value)),items:R})]}),(0,t.jsxs)("div",{className:"flex justify-between",children:[(0,t.jsx)("div",{className:"text-base text-white",children:"".concat(e("total_monthly_payment"),": ").concat((0,A.iB)({price:o||0,currenncyDB:l,currency:(0,A.zC)(s),currencys:n}))}),x?(0,t.jsx)("div",{className:"text-[#13DFEE] ",children:(0,t.jsx)(p.a,{})}):(0,t.jsxs)("div",{className:"flex items-center gap-4 text-[#13DFEE] cursor-pointer",onClick:u,children:[e((null==h?void 0:h.id)?"download_plan":"save_plan"),(0,t.jsx)("span",{className:(null==h?void 0:h.id)?"rotate-90":"",children:(null==h?void 0:h.id)?(0,t.jsx)(H.Z,{color:"#13DFEE"}):(0,t.jsx)($.dE,{color:"#13DFEE",width:15,height:15})})]})]}),(0,t.jsx)("div",{className:"h-[2px] bg-white w-full"})]})},X=e=>{let{title:a,content:l,color:n,icono:s,contenido:i="",isOpen:r,onClick:o}=e;return(0,t.jsxs)("div",{style:{background:n},className:"px-4 rounded-[7px] ".concat(""),children:[(0,t.jsxs)("button",{className:"w-full flex justify-between items-center py-6 text-white",onClick:o,children:[(0,t.jsxs)("div",{className:"flex gap-[10px] items-center",children:[s,(0,t.jsx)("span",{className:"text-[12px] md:text-lg lg:text-xl leading-normal",children:a})]}),(0,t.jsx)("span",{className:"".concat(r?"open":"close rotate-180"," invert"),children:(0,t.jsx)(N.Z,{})})]}),r&&(0,t.jsx)("div",{className:"text-base leading-snug pb-[18px]",children:ee(i)})]})};let ee=e=>{switch(e){case"hipotecario":return(0,t.jsx)(J,{});case"ofertas":return(0,t.jsx)(B,{});default:return(0,t.jsx)("p",{children:"Contenido no disponible"})}};var ea=e=>{let{openIndex:a,handleToggle:l}=e,{t:n}=(0,m.$G)("common"),{t:s}=(0,m.$G)("development"),{currentCluster:i}=(0,E.K)(),r=[{contenido:"hipotecario",icono:(0,t.jsx)(V,{}),titulo:s("calculate_your_financing"),color:"#00263E59"},{contenido:"ofertas",icono:(0,t.jsx)(F,{}),titulo:s("financing_options"),color:"#F3723B"}];return(0,t.jsxs)(t.Fragment,{children:[r.map((e,n)=>(0,t.jsx)(X,{title:e.titulo,color:e.color,icono:e.icono,contenido:e.contenido,isOpen:a===n,onClick:()=>l(n)},n)),!1]})},el=l(8428),et=l(6477),en=e=>{let{unit:a,prototipe:l}=e,{handleAddFavoriteUnit:s,handleRemoveFavoriteUnit:i}=(0,el.Z)(),{t:r}=(0,m.$G)("development"),[o,c]=(0,n.useState)(!1),{user:d}=(0,j.CG)(e=>e.auth),u=()=>null!=d&&!!d.historialApartados&&!!Object.values(d.historialApartados).find(e=>e.idUnidad===a.id);return((0,n.useEffect)(()=>{c(u())},[null==d?void 0:d.historialApartados]),null==d?void 0:d.id)?(0,t.jsx)(p.Z,{variant:"transparent",baseClassName:"py-[12px] px-[11px] ml-",children:(0,t.jsx)(et.Z,{})}):null},es=l(2277),ei=l(972),er=l(274),eo=l(7426),ec=l(8172),ed=l(5883),eu=l(1261),ep=l(270),ex=l(5695),em=l(8700),eh=l(2105),ev=l(2580),eC=l(266),ef=l(4453),ej=l(9164),eg=l(986),eA=e=>{let{tipo:a,info:l,type:n,color:s}=e;return(0,t.jsxs)("div",{className:"\n flex items-center\n ".concat("sm"==n?"gap-1":"gap-2"),children:[(0,t.jsx)("span",{className:"\n ".concat("sm"==n?"w-[13px]":"","\n ").concat("light"==s?"invert":""," "),children:(()=>{switch(a){case"bed":return(0,t.jsx)(es.Z,{});case"bath":return(0,t.jsx)(ei.Z,{});case"parking":return(0,t.jsx)(er.Z,{});case"studio":return(0,t.jsx)(eo.Z,{});case"washing":return(0,t.jsx)(ec.Z,{});case"chair":return(0,t.jsx)(ed.Z,{});case"cook":return(0,t.jsx)(eu.Z,{});case"roof":return(0,t.jsx)(ep.Z,{});case"security":return(0,t.jsx)(ex.Z,{});case"gym":return(0,t.jsx)(em.Z,{});case"spa":return(0,t.jsx)(eh.Z,{});case"pool":return(0,t.jsx)(ev.Z,{});case"lobby":return(0,t.jsx)(eC.Z,{});case"elevator":return(0,t.jsx)(ef.Z,{});case"zone":return(0,t.jsx)(ej.Z,{});case"terraza":return(0,t.jsx)(eg.Z,{});default:return null}})()}),(0,t.jsx)("span",{className:"\n ".concat("light"==s?"text-[#636161]":"text-[#FFFFFF] ","\n ").concat("sm"==n?"text-[8px]":"lg"==n?"text-[16px]":"text-[11px] lg:text-[13px]"),children:l})]})},eL=()=>{let{t:e}=(0,m.$G)("development"),{t:a}=(0,m.$G)("common"),{currentUnit:l,currentPrototipe:n}=(0,E.K)(),s={...null==n?void 0:n.caracteristicas,...null==l?void 0:l.caracteristicas},i="".concat(s.recamaras," ").concat(e("bed")," ").concat(s.estudio?"+ ".concat(e("studio")):"");return(0,t.jsxs)("div",{className:"px-[14px] py-4 bg-[#2F5A6A] rounded-[7px] gap-2",children:[(0,t.jsx)("p",{className:"text-white text-base font-bold pb-3",children:e("characteristics")}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-4 pt-1",children:[(0,t.jsx)(eA,{info:i,tipo:"bed"}),(0,t.jsx)(eA,{info:"".concat(s.banios||0," ").concat(e("bath")),tipo:"bath"}),(0,t.jsx)(eA,{info:"".concat(s.cajones||0," ").concat(e("parking")),tipo:"parking"}),s.areaLavado&&(0,t.jsx)(eA,{info:"".concat(e("laundry")),tipo:"washing"}),s.comedor&&(0,t.jsx)(eA,{info:"".concat(e("dining_room")),tipo:"chair"}),s.cocina&&(0,t.jsx)(eA,{info:"".concat(e("kitchen")),tipo:"cook"})]})]})},eb=l(7340),ew=e=>{let{isFraccional:a}=e,{t:l}
1=(0,m.$G)("common"),{currentUnit:n,currentPrototipe:s}=(0,E.K)(),{unitOfMeasurement:i,currentCurrency:r,currencys:o}=(0,j.CG)(e=>e.ui),{development:c}=(0,j.CG)(e=>e.corporate),{currentCluster:d}=b(null==n?void 0:n.id),u={...null==s?void 0:s.metrajes,...null==n?void 0:n.metrajes},p=e=>"".concat((0,A.tM)({unitOfMeasurement:i,value:e||0}));return(0,t.jsxs)("div",{children:[(0,t.jsx)(eb.Z,{titulo:a?"".concat(l("cost_per_fraction"),":"):"".concat(l("price"),":"),dato:"".concat((0,A.iB)({price:(null==n?void 0:n.precio)||0,currenncyDB:r,currency:(0,A.zC)((null==n?void 0:n.divisa)?n:c),currencys:o})),bigDato:"big",classExtra:"py-3"}),(0,t.jsxs)("div",{className:"grid grid-cols-3",children:[(0,t.jsx)(eb.Z,{titulo:"".concat(l("interior_area"),":"),dato:p(u.areaInterior),classExtra:"py-2 border px-2 border-[#E4E5E633]"}),(0,t.jsx)(eb.Z,{titulo:"".concat(l("exterior_area"),":"),dato:p(u.areaExterior),classExtra:"py-2 border px-2 border-[#E4E5E633]"}),(0,t.jsx)(eb.Z,{titulo:"".concat(l("total_area"),":"),dato:p(u.areaTotal),classExtra:"py-2 border px-2 border-[#E4E5E633]"}),(0,t.jsx)(eb.Z,{titulo:"".concat(l("tower"),":"),dato:(null==d?void 0:d.nombre)||"",classExtra:"py-2 border px-2 border-[#E4E5E633]"}),(0,t.jsx)(eb.Z,{titulo:"".concat(l("level"),":"),dato:(null==n?void 0:n.mapeoNivel)||"",classExtra:"py-2 border px-2 border-[#E4E5E633]"}),(0,t.jsx)(eb.Z,{titulo:"".concat(l("type"),":"),dato:(null==d?void 0:d.nombre)||"",classExtra:"py-2 border px-2 border-[#E4E5E633]"})]})]})},eZ=e=>{let{title:a,subtitle:l}=e;return(0,t.jsxs)("div",{className:"font-SFProDisplay text-white ",children:[(0,t.jsx)("h2",{className:"text-lg sm:text-xl font-bold",children:a}),l&&(0,t.jsx)("p",{className:"text-sm sm:text-base",children:l})]})},eM=l(9731),eN=l(8803),ey=l(5);let eE=async e=>{e.fechaAlta=new Date;let a=await (0,O.ET)((0,O.hJ)(K.db,T.v.RESERVATIONS),e);return{...e,id:a.id}},e_=async(e,a)=>{let l=(0,O.IO)((0,O.hJ)(K.db,T.v.RESERVATIONS),(0,O.ar)("unidad.id","==",e),(0,O.ar)("usuario.id","==",a),(0,O.ar)("status","in",["PENDIENTE","CONFIRMACION_APARTADO","EMAIL_RECORDATORIO_APARATADO_ENVIADO"]));return(await (0,O.PL)(l)).docs.map(e=>e.data())};var ek=l(4832),eF=l(9473),eV=l(4343),eB=l(6183),eH=l(4362),eS=l(1179),eI=()=>{let{user:e}=(0,j.CG)(e=>e.auth),{corporate:a,development:l,clusters:t,medias:s}=(0,j.CG)(e=>e.corporate),{currentUnit:i,currentPrototipe:r}=(0,E.K)(),{showModal:o,isModalVisible:c,closeModal:d}=(0,eS.Z)(),[u,p]=(0,n.useState)(!1),x=(0,eF.I0)(),{handleAddFavorite:m}
1=(0,el.Z)(),[h,v]=(0,n.useState)([""]),{formData:C,onChange:f}=(0,ey.Z)({...eM.RN,nombre:"".concat(null==e?void 0:e.nombre," ").concat(null==e?void 0:e.apellidos),email:(null==e?void 0:e.email)||"",telefono:(null==e?void 0:e.telefono)||"",celular:(null==e?void 0:e.celular)||""}),g=(0,A.cG)({medias:s,id:null==r?void 0:r.imagenRef}),L=async()=>{var a,n,s;if((null==e?void 0:e.unidadesApartadas)&&(null==i?void 0:i.id)&&(null==e||null===(n=e.unidadesApartadas)||void 0===n||null===(a=n[null==i?void 0:i.id])||void 0===a||!a.emailLimiteExcedidoEnviado))try{p(!0);let a=t.find(e=>e.id===(null==i?void 0:i.idCluster)),n=null==a?void 0:null===(s=a.niveles)||void 0===s?void 0:s.find(e=>e.id===(null==i?void 0:i.idNivel));await (0,eV.r)((0,eN.Xt)({development:l,unit:i,user:e,cluster:a,level:n}));let r={unidadesApartadas:{[i.id]:{emailLimiteExcedidoEnviado:!0}}};await Promise.all([(0,eB.eN)(e.id,r)]);let o={...e,...r};x((0,eH.av)(o))}catch(e){(0,ek.e$)(e)}finally{p(!1)}},b=()=>!0,w=(e,a)=>e_(e,a),Z=e=>Array.isArray(e)?e.map(e=>Z(e)):null===e||"object"!=typeof e||e.constructor!==Object||e instanceof O.EK?e:Object.fromEntries(Object.entries(e).filter(e=>{let[a,l]=e;return void 0!==l}).map(e=>{let[a,l]=e;return[a,Z(l)]}));return{handleApartar:async()=>{if(e&&i){if(!e.idEntradaCRM){(0,z.iY)("Error al reservar la unidad, no existe entrada CRM");return}if((await w(null==i?void 0:i.id,null==e?void 0:e.id)).length>0)return(0,z.iY)("Ya has reservado esta unidad");if((0,eN.Z2)(e,i))return await L(),(0,z.iY)("Ya has apartado esta unidad ".concat(eN.IJ," veces, comun\xedcate con tu asesor si quieres apartarla nuevamente"));if(!b())return(0,z.iY)("Por favor, complete todos los campos requeridos");p(!0);try{var n,s;let c=t.find(e=>e.id===(null==i?void 0:i.idCluster)),d=null==c?void 0:null===(n=c.niveles)||void 0===n?void 0:n.find(e=>e.id===(null==i?void 0:i.idNivel)),u=null==c?void 0:null===(s=c.nivelesTipoMapeo)||void 0===s?void 0:s.find(e=>e.id===(null==d?void 0:d.tipoMapeo));if(C.nombreRepresentante=h.join(", "),!c||!d||!u||!r)return;let p={...i},v=await eE((0,eN.YL)({development:l,unit:p,corporate:a,user:e,cluster:c,level:d,mappingLevel:u,formData:C,type:"",prototipe:r,urlImageUnit:g})),f=(0,eN.Tb)({unit:p,resReservation:v,type:"apartar",corporate:a,formData:C,development:l,prototipe:r,cluster:c}),j={...e.historialApartados||{},...f.historialApartados||{}},A=Z({...f,historialApartados:j});console.log({data:A}),await Promise.all([(0,eB.eN)(e.id,A)]);let L={...e,...A};e.desarrollosFavoritos&&e.desarrollosFavoritos[Q.q][l.id]||await m(l.id),x((0,eH.av)(L)),(0,z.ah)("El apartamento ha sido reservado correctamente"),o()}catch(e){(0,ek.e$)(e)}finally{p(!1)}}},formData:C,onChange:f,isLoading:u,representante:h,addRepresentante:()=>{v([...h,""])},setRepresentante:v,handleChangeRepresentante:(e,a)=>{let l=[...h];l[a]=e.target.value,v(l)},showModal:o,isModalVisible:c,closeModal:d}},eP=l(6303);let eD=[{value:"mexicana",label:"Mexicana"},{value:"extranjera",label:"Extranjera"}],eG=[{value:"persona-fisica",label:"F\xedsica"},{value:"persona-moral",label:"Persona moral"}],eR=[{value:"soltero",label:"Soltero"},{value:"casado",label:"Casado"}],eO=[{value:"mexicana",label:"Mexican"},{value:"extranjera",label:"Foreigner"}],eT=[{value:"persona-fisica",label:"Physical"},{value:"persona-moral",label:"Moral person"}],eQ=[{value:"soltero",label:"Single"},{value:"casado",label:"Married"}];var eK=l(691),eW=e=>{var a;let{isModalVisible:l,closeModal:n}=e,{t:s}=(0,m.$G)("development"),{currentCluster:i}=(0,E.K)(),{user:r}=(0,j.CG)(e=>e.auth);return((null==i?void 0:i.cuentasBancarias)&&(null==i?void 0:null===(a=i.cuentasBancarias)||void 0===a?void 0:a.length)>0&&(null==i||i.cuentasBancarias[0]),l)?(0,t.jsx)("div",{className:"font-SFProDisplay text-rhapsody_blue",children:(0,t.jsx)(eK.Z,{onClose:n,size:"sm",modalClass:"max-w-[500px] w-[80%]",classBody:"px-2 md:px-6 py-2 md:py-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold text-center",children:s("thanks_for_registering_your_reservation")}),(0,t.jsxs)("p",{className:"capitalize text-center text-sm md:text-base py-3",children:[s("dear")," ",(null==r?void 0:r.nombre)+" "+(null==r?void 0:r.apellidos)]}),(0,t.jsx)("p",{className:"text-center text-sm md:text-base py-4 px-5",children:s("bank_details")}),(0,t.jsx)("div",{className:"flex justify-center items-center",children:(0,t.jsx)(p.Z,{pill:!0,variant:"primary",className:"w-auto mx-auto my-3",onClick:n,children:s("accept")})})]})})}):null};let ez="border border-[#828282] rounded-full px-6 py-4 xs:bg-[#82828285] text-base",eU="xs:my-0",eq="border xs:text-[#000] rounded-full px-6 py-4 xs:bg-[#fff] text-base",eY="xs:my-0",e$="w-full xs:rounded-full h-[50px] px-6 py-3";var eJ=e=>{let{setReservar:a}=e,{t:l,i18n:s}=(0,m.$G)("development"),{currentUnit:i}
1=(0,E.K)(),[r,o]=(0,n.useState)("text"),[c,d]=(0,n.useState)(!1);if(!i||(null==i?void 0:i.status.toUpperCase())!=="DISPONIBLE")return null;let{handleApartar:u,formData:x,onChange:h,representante:v,handleChangeRepresentante:C,isModalVisible:f,closeModal:j,addRepresentante:g}=eI(),{nombre:A,email:L,telefono:b,celular:w}=x;return(0,t.jsxs)("div",{className:"flex flex-col gap-2 items-center h-[600px] overflow-y-auto scrollbar-hide",children:[(0,t.jsxs)("div",{className:" flex flex-col gap-2 items-center h-[600px] overflow-y-auto scrollbar-hide",children:[(0,t.jsx)(eW,{isModalVisible:f,closeModal:j}),(0,t.jsx)(eZ,{title:l("book_unit"),subtitle:l("book_unit_description")}),(0,t.jsxs)("form",{onSubmit:u,className:"w-full flex flex-col gap-4 text-[#E6E6E6] font-Inter my-3",children:[(0,t.jsx)(eP.Z,{name:"nombre",label:l("name"),value:A,onChange:h,inputClass:ez,labelClass:eU,required:!0}),(0,t.jsx)(eP.Z,{name:"email",label:l("email"),value:L,onChange:h,inputClass:ez,labelClass:eU,required:!0}),(0,t.jsx)(eP.Z,{name:"celular",label:l("phone"),value:w,onChange:h,inputClass:ez,labelClass:eU,required:!0}),(0,t.jsx)("div",{className:"mt-7",children:(0,t.jsx)(eZ,{title:l("complete_information"),subtitle:l("please_register_information")})}),(0,t.jsxs)("div",{className:"my-5 space-y-5",children:[(0,t.jsx)(D,{placeholder:l("select_nationality"),items:"es"==s.language?eD:eO,onChange:h,name:"nacionalidad",value:x.nacionalidad,required:!0,selectClassName:e$}),(0,t.jsx)(D,{placeholder:l("select_person_type"),items:"es"==s.language?eG:eT,onChange:h,name:"tipoPersona",value:x.tipoPersona,required:!0,selectClassName:e$})]}),x.nacionalidad&&"persona-moral"===x.tipoPersona&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(eP.Z,{placeholder:l("company_name"),name:"nombreEmpresa",value:x.nombreEmpresa,onChange:h,required:!0,inputClass:eq,labelClass:eY}),(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[v.map((e,a)=>(0,t.jsx)(eP.Z,{placeholder:l("legal_representative_name"),name:"nombreRepresentante",value:v[a],onChange:e=>C(e,a),required:!0,inputClass:eq,labelClass:eY})),(0,t.jsxs)("div",{className:"flex items-end justify-end px-2 cursor-pointer",onClick:g,children:[l("add_representante")," ",(0,t.jsx)("span",{className:" ml-3",children:"+"})]})]}),(0,t.jsx)(eP.Z,{placeholder:l("phone_company"),name:"telefonoEmpresa",value:x.telefonoEmpresa,onChange:h,inputClass:eq,labelClass:eY,type:"number"}),(0,t.jsx)(eP.Z,{placeholder:l("email_company"),name:"emailEmpresa",value:x.emailEmpresa,onChange:h,inputClass:eq,labelClass:eY,type:"email"}),(0,t.jsx)(eP.Z,{placeholder:l("address_company"),name:"domicilioEmpresa",value:x.domicilioEmpresa,onChange:h,inputClass:eq,labelClass:eY})]}),x.nacionalidad&&"persona-fisica"===x.tipoPersona&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(D,{placeholder:l("select_civil_status"),className:"flex-1",onChange:h,name:"estadoCivil",value:x.estadoCivil,selectClassName:e$,items:"es"==s.language?eR:eQ}),(0,t.jsx)(eP.Z,{placeholder:l("birthdate"),className:"flex-1",onChange:h,name:"fechaNacimiento",value:x.fechaNacimiento,onFocus:()=>o("date"),type:r,inputClass:eq,labelClass:eY}),(0,t.jsx)(eP.Z,{placeholder:l("select_country"),className:"flex-1",onChange:h,name:"lugarNacim
1iento",value:x.lugarNacimiento,inputClass:eq,labelClass:eY}),(0,t.jsx)(eP.Z,{placeholder:l("occupation"),className:"flex-1",value:x.ocupacion,name:"ocupacion",onChange:h,inputClass:eq,labelClass:eY}),(0,t.jsx)(eP.Z,{placeholder:l("beneficiary_name"),onChange:h,value:x.nombreBeneficiario,name:"nombreBeneficiario",inputClass:eq,labelClass:eY})]})]})]}),(0,t.jsx)(p.Z,{pill:!0,variant:"transparent",disabled:!1,className:"py-3 px-6",onClick:()=>{u(),d(!0)},children:l("book_unit")})]})},eX=l(7974),e1=()=>{let{t:e}=(0,m.$G)("development"),{closeModal:a,isModalVisible:l,setIsModalVisible:s}=(0,eS.Z)(!1),{user:i}=(0,j.CG)(e=>e.auth),r=(0,g.useRouter)();return((0,n.useEffect)(()=>{i&&s(!1),i||s(!0)},[i]),l)?(0,t.jsx)("div",{className:"font-SFProDisplay text-rhapsody_blue",children:(0,t.jsx)(eK.Z,{onClose:a,size:"sm",modalClass:"max-w-[500px] w-[80%]",classBody:"px-2 md:px-6 py-2 md:py-4",children:(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"flex justify-center items-center mb-4",children:(0,t.jsx)($.Ke,{})}),(0,t.jsx)("h2",{className:"text-xl md:text-2xl font-bold text-center",children:e("apart_apartament")}),(0,t.jsx)("p",{className:"text-center text-sm md:text-base py-4 px-5",children:e("copy_modal_unit")}),(0,t.jsxs)("div",{className:"flex justify-center gap-4 items-center",children:[(0,t.jsx)(p.Z,{pill:!0,variant:"pOutline",className:"w-auto my-3",onClick:a,children:e("no_cancel")}),(0,t.jsx)(p.Z,{pill:!0,variant:"primary",className:"w-auto my-3",onClick:()=>{i?a():r.push("/login?back=true")},children:e("yes_login")})]})]})})}):null},e0=e=>{let{isFraccional:a,idUnidad:l}
1=e,[s,i]=(0,n.useState)("Planta"),[h,v]=(0,n.useState)(!1),[C,L]=(0,n.useState)(null),{setCurrentUnit:w,setCurrentPrototipe:Z,setCurrentCluster:M}=(0,E.K)(),{currenUnit:N,currentPrototipe:_,thumbnails:F,featuredImage:V,currentCluster:B}=b(l),{user:H}=(0,j.CG)(e=>e.auth),{development:S}=(0,j.CG)(e=>e.corporate),I=(0,g.useRouter)(),{t:P}=(0,m.$G)("common");(0,n.useEffect)(()=>{N&&w(N),_&&Z(_),B&&M(B)},[N,_,B]);let D=[{name:"Planta",icon:(0,t.jsx)(o,{}),info:"planta",plantaI:d},...F&&F.length>1?[{name:"Galeria",icon:(0,t.jsx)(c,{}),info:"galeria"}]:[]],G=D.find(e=>e.name===s),R=(0,n.useRef)(null);return N&&_?(0,t.jsxs)("div",{className:"bg-[#244B5A] pt-12 pb-16",children:[(0,t.jsx)("section",{className:"flex flex-col items-center px-5",children:(0,t.jsxs)("div",{className:"flex flex-wrap gap-[26px] lg:gap-[49px] items-center relative max-w-full w-[1170px]",children:[(0,t.jsx)("div",{onClick:()=>{let e=I.asPath,l="".concat(S.slug,"?unidades=").concat(e.includes("niveles")?"niveles":"cards");(0,eX.f)({router:I,slug:l,isFraccional:a})},className:"cursor-pointer",children:(0,t.jsx)(r,{})}),(0,t.jsxs)("span",{className:"text-[40px] flex flex-row-reverse lg:flex-row items-center gap-2 text-[#F2F3F4] font-bold",children:[(0,t.jsx)(k,{}),(0,A.dG)(N)]})]})}),(0,t.jsxs)("section",{className:"flex flex-col items-center px-5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap lg:flex-nowrap gap-[30px] justify-stretch max-w-full w-[1160px]",children:[(0,t.jsxs)("div",{className:"w-full lg:w-[55%]",children:[(0,t.jsx)("div",{className:"flex justify-stretch border-b border-b-[#1B3843]",children:D.map(e=>(0,t.jsxs)("button",{onClick:()=>i(e.name),className:"flex max-w-[200px] flex-1 justify-center items-center gap-[10px] py-2 text-[9px] lg:text-sm font-medium w-full lg:w-auto ".concat(s===e.name?"text-white bg-[#1B3843] rounded-t-lg":"text-[#FFFFFF80]"),children:[(0,t.jsx)("span",{className:"".concat(s===e.name?"lg:invert lg:brightness-[0%]":"opacity-50"),children:e.icon}),e.name]},e.name))}),(0,t.jsxs)("div",{className:"info",children:[(0,t.jsxs)("div",{className:"lg:min-h-[450px]",children:[(null==G?void 0:G.info)==="planta"&&(0,t.jsx)(e5,{imagen:V}),(null==G?void 0:G.info)==="galeria"&&(0,t.jsx)(y,{imagenes:F||[],propRef:R}),(null==G?void 0:G.info)==="recorrido"&&(0,t.jsx)(e6,{imagen:u})]}),(0,t.jsx)("p",{className:"text-[8px] text-[#B7B7B7] pt-1",children:P("this_plant_is_representative_of_level_21_and_the_developer_is_not_responsible_for_changes_to_the_project")})]})]}),(0,t.jsxs)("div",{className:"w-full lg:w-[45%]",children:[h&&(0,t.jsx)(eJ,{setReservar:v}),!h&&(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[(0,t.jsx)(ew,{isFraccional:a}),(0,t.jsx)(eL,{}),a&&(0,t.jsx)(f,{idUnidad:l}),!a&&(0,t.jsx)(ea,{openIndex:C,handleToggle:e=>{H&&L(C===e?null:e)}}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2 lg:gap-5 relative mt-4",children:[(0,t.jsx)("div",{children:" "}),(0,t.jsx)("div",{className:"flex gap-2 flex-row lg:gap-2",children:(null==N?void 0:N.status.toUpperCase())==="DISPONIBLE"&&(null==H?void 0:H.id)&&(0,t.jsx)(p.Z,{pill:!0,variant:"transparent",className:"py-2 px-6",onClick:()=>v(!0),children:P("book")})}),(0,t.jsxs)("div",{className:"flex gap-2 flex-col sm:flex-row lg:gap-2",children:[(0,t.jsx)(en,{unit:N,prototipe:_}),(0,t.jsx)(p.Z,{variant:"transparent",baseClassName:"py-[12px] px-[11px] ml- border-0",children:(0,t.jsx)(x,{})})]})]})]})]})]}),(0,t.jsx)(e1,{})]})]}):null};let e5=e=>{let{imagen:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)(i(),{src:a,alt:"planta",className:"w-full lg:h-[500px] object-contain",width:1e3,height:1e3})})},e6=e=>{let{imagen:a}=e;return(0,t.jsx)("div",{children:(0,t.jsx)(i(),{src:a,alt:"recorrido",className:"w-full lg:h-[446px] object-cover rounded-lg overflow-hidden"})})}},1703:function(e,a,l){l.d(a,{II:function(){return x},Jm:function(){return d},gW:function(){return u},vQ:function(){return c},wk:function(){return p}}),l(8873);var t=l(9755),n=l.n(t),s=l(1776),i=l(1569),r=l(1417);let o={singleSelect:!0,fade:!1,fadeDuration:250,selected:!1,stroke:!0,strokeWidth:1},c=e=>{let a=n()("#mapeo_nivel"),l="#mapeo_nivel";if(!a&&null==a.scaleInfo.width)return null;n()(l).data("mapster")&&n()(l).mapster("unbind");let t={...o,mapKey:"departamento"},s={...t,isSelectable:!1,fillColor:"000000",fillOpacity:.3,strokeColor:"3320FF",areas:e.mapsterBind,showToolTip:!1},i={...t,isSelectable:!0,fillColor:"ffffff",fillOpacity:.9,strokeWidth:.4,strokeColor:"837c80",areas:e.areasma
1psterReBind,showToolTip:!0};n()("#mapeo_nivel").mapster(s).mapster("snapshot").mapster("rebind",i,!0)},d=()=>({opacityDep:.4,opacityDepRe:.9}),u=e=>{let{units:a,levelId:l,mappingLevel:t}=e;return null==a?void 0:a.find(e=>e.idNivel===l&&e.mapeoNivel===t)},p=e=>{let{corporate:a,development:l,unit:t,estado:n}=e,i=((0,s.w)({corporate:a,development:l})||{})[n||(null==t?void 0:t.status)||"Incompleto"];return i?i.color.hexColor.replace("#",""):"fff"},x=(e,a,l)=>{let t="",n="No Disponible",s="";return e&&((0,r.LX)(e,a)&&(t=(0,i.iB)({price:e.precio,currency:l})),n=e.nombre,s=e.status),n+" "+s+" "+t}},7974:function(e,a,l){l.d(a,{f:function(){return i}});var t=l(991);let n=e=>"/".concat(t.Z5.DEVELOPMENTS,"/").concat(e),s=e=>"/".concat(t.Z5.FRACTIONAL,"/").concat(e),i=e=>{let{router:a,slug:l,isFraccional:t}=e;l&&a.push(t?s(l):n(l))}}}]);
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.