!function(){"use strict";try{if("undefined"!=typeof document){var a=document.createElement("style");a.appendChild(document.createTextNode('@keyframes _fadeIn_6ah5o_1{0%{opacity:0}to{opacity:1}}@keyframes _fadeInFromTop_6ah5o_1{0%{opacity:0;translate:0 -.5rem}to{opacity:1;translate:0}}._verticalCard_6ah5o_19{color:var(--color);margin-top:3em;padding:.75em;position:relative;overflow:hidden}@media screen and (min-width:1024px) and (hover:hover){._verticalCard_6ah5o_19{transition:all .2s ease-in-out}._verticalCard_6ah5o_19:hover{transform:scale(1.03)}}._verticalCard_6ah5o_19 ._content_6ah5o_34{flex-direction:column;flex-grow:1;height:100%;display:flex}._verticalCard_6ah5o_19 ._topContent_6ah5o_40{border-radius:var(--border-radius);height:280px;margin-top:-3em;position:relative;overflow:hidden}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._topIcons_6ah5o_47{z-index:1;gap:10px;display:flex;position:absolute;top:10px;right:10px}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._topIcons_6ah5o_47 ._mediaIcon_6ah5o_55{color:#fff;background-color:#0007;border-radius:50px;margin-left:.5em;padding:.4rem}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._seenOverlay_6ah5o_62{z-index:5;pointer-events:none;color:#fff;background:#0006;justify-content:center;align-items:center;gap:.5rem;transition:opacity .3s;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._seenOverlay_6ah5o_62>*{filter:drop-shadow(2px 4px 6px #000)}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78{height:100%;overflow:hidden}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-image{object-fit:cover;width:100%;height:100%;overflow:hidden}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery-right-nav,.image-gallery-left-nav){color:#fff;padding:.25em}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery-right-nav,.image-gallery-left-nav){color:#fff;padding:.25em}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery-right-nav,.image-gallery-left-nav){color:#fff;padding:.25em}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-description{display:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery,.image-gallery-content,.image-gallery-slide-wrapper,.image-gallery-swipe,.image-gallery-slides,.image-gallery-slide){height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery,.image-gallery-content,.image-gallery-slide-wrapper,.image-gallery-swipe,.image-gallery-slides,.image-gallery-slide){height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery,.image-gallery-content,.image-gallery-slide-wrapper,.image-gallery-swipe,.image-gallery-slides,.image-gallery-slide){height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery-right-nav,.image-gallery-left-nav){opacity:.5;height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery-right-nav,.image-gallery-left-nav){opacity:.5;height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery-right-nav,.image-gallery-left-nav){opacity:.5;height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery-right-nav,.image-gallery-left-nav):hover{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery-right-nav,.image-gallery-left-nav):hover{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery-right-nav,.image-gallery-left-nav):hover{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery-right-nav,.image-gallery-left-nav):focus-within{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery-right-nav,.image-gallery-left-nav):focus-within{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery-right-nav,.image-gallery-left-nav):focus-within{opacity:1;background-color:#00000015;outline:none}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-webkit-any(.image-gallery-right-nav,.image-gallery-left-nav) .image-gallery-svg{width:26px;height:26px}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :-moz-any(.image-gallery-right-nav,.image-gallery-left-nav) .image-gallery-svg{width:26px;height:26px}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 :is(.image-gallery-right-nav,.image-gallery-left-nav) .image-gallery-svg{width:26px;height:26px}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-bullet{box-shadow:none;opacity:.5;background:#fff;border:none;padding:4px}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-bullet:hover,._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-bullet:focus-within{opacity:1;transform:scale(1.2)}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 ._carousel_6ah5o_78 .image-gallery-bullet.active{opacity:1}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 .image-gallery-image{object-fit:cover;line-height:initial;width:100%;height:100%}._verticalCard_6ah5o_19 ._topContent_6ah5o_40 .image-gallery-image:after{content:"";background:var(--image-overlay-color);position:absolute;top:0;bottom:0;left:0;right:0}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137{flex-flow:column;flex-grow:1;justify-content:space-between;padding-top:.5rem;display:flex}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144{flex-flow:column;justify-content:space-between;gap:.8rem;margin-block-start:.75rem;margin-block-end:.75rem;display:flex}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144:focus-within{outline:var(--focus-outline)}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._address_6ah5o_154{flex-direction:column;padding-top:.5rem;display:flex}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._address_6ah5o_154 ._title_6ah5o_159{color:var(--color);font-size:1.2rem;font-weight:700}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._address_6ah5o_154 ._street_6ah5o_164{color:var(--color);font-size:.95rem}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._characteristics_6ah5o_168{border-right:1px solid var(--separator-color);white-space:nowrap;margin-right:5px;padding-right:5px;font-size:14px;display:inline-block}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._characteristics_6ah5o_168:last-child{border:none}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._characteristics_6ah5o_168 i{font-style:normal;font-weight:600}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._contract_6ah5o_183{flex-flow:column;justify-content:center;display:flex}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._contract_6ah5o_183 ._label_6ah5o_188{color:var(--color);font-size:1.1rem}._verticalCard_6ah5o_19 ._mainContent_6ah5o_137 ._infos_6ah5o_144 ._contract_6ah5o_183 ._value_6ah5o_192{color:var(--primary-color);font-size:1.1rem;font-weight:600}._verticalCard_6ah5o_19._rounded_6ah5o_197 ._topContent_6ah5o_40{-webkit-mask-image:url(/static/images/propertyCardImageMask.svg);mask-image:url(/static/images/propertyCardImageMask.svg);-webkit-mask-position:top;mask-position:top;-webkit-mask-size:100% 100%;mask-size:100% 100%;-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat}._verticalCard_6ah5o_19._rounded_6ah5o_197 ._topContent_6ah5o_40 .image-gallery-image{object-fit:cover}._verticalCard_6ah5o_19._fullWidth_6ah5o_210{margin-top:0;padding:0}._verticalCard_6ah5o_19._fullWidth_6ah5o_210 ._infos_6ah5o_144,._verticalCard_6ah5o_19._fullWidth_6ah5o_210 ._footer_6ah5o_214{margin:.75em}._verticalCard_6ah5o_19._fullWidth_6ah5o_210 ._topContent_6ah5o_40{margin-top:0}._verticalCard_6ah5o_19._fullWidth_6ah5o_210:not(._verticalCard_6ah5o_19._fullWidth_6ah5o_210._rounded_6ah5o_197) ._topContent_6ah5o_40{border-bottom-right-radius:0;border-bottom-left-radius:0}._verticalCard_6ah5o_19._fullWidth_6ah5o_210:not(._verticalCard_6ah5o_19._fullWidth_6ah5o_210._rounded_6ah5o_197) .image-gallery-image{aspect-ratio:1.25}._verticalCard_6ah5o_19:hover ._seenOverlay_6ah5o_62{opacity:0}')),document.head.appendChild(a)}}catch(o){console.error("vite-plugin-css-injected-by-js",o)}}(); import{p as a,q as e,r as s,n as i,j as l,V as t,H as r,o as n,L as o,a0 as m,a4 as c,a7 as d,Y as h,ai as u,x as _,K as g}from"./modal-DHjdkE9t.js";import{m as p}from"./minMaxValues-BzTBwTDj.js";import{L as x}from"./ListLayout-CJussfKx.js";import"./react-paginate-DDi4CSkI.js";import"./CTA-HoN7YRae.js";import"./Map-OgwvVZpm.js";import"./interchange-BQ_MDuLl.js";import"./characteristic-DGl4zNUl.js";import"./pets-Bcs4dSgB.js";const j="_verticalCard_6ah5o_19",v="_content_6ah5o_34",f="_topContent_6ah5o_40",N="_topIcons_6ah5o_47",y="_mediaIcon_6ah5o_55",b="_seenOverlay_6ah5o_62",w="_carousel_6ah5o_78",C="_mainContent_6ah5o_137",V="_infos_6ah5o_144",k="_address_6ah5o_154",z="_title_6ah5o_159",L="_characteristics_6ah5o_168",I="_contract_6ah5o_183",B="_label_6ah5o_188",T="_value_6ah5o_192",M="_rounded_6ah5o_197",P="_fullWidth_6ah5o_210",H=({data:u,cardRef:_,lazyLoadImage:g})=>{const{realEstateData:x}=a(),w=x.styling.verticalCards,[H]=e(["seenCondominiums"]),[D,F]=s.useState(!1);s.useEffect((()=>{var a;F(u&&(null==(a=null==H?void 0:H.seenCondominiums)?void 0:a.includes(u.condominium_id)))}),[u,H]);const S=i(j,{[M]:null==w?void 0:w.roundedImage},{[P]:null==w?void 0:w.fullWidthImage});return u?l.jsx(r,{cardRef:_,className:S,contentClassName:v,removeDefaultPadding:!0,children:l.jsxs(l.Fragment,{children:[l.jsxs("div",{className:f,children:[l.jsxs("div",{className:N,children:[u.hasTour&&l.jsx(n,{icon:"street-view",size:"1x",className:y}),u.hasVideo&&l.jsx(n,{icon:"video",size:"1x",className:y})]}),D&&l.jsxs("div",{className:b,children:[l.jsx(n,{icon:["far","check"],size:"1x"}),l.jsx("span",{children:"Visualizado"})]}),l.jsx($,{images:u.images,url:u.url,target:w.openCardLinkInNewTab?"_blank":void 0,lazyLoadImage:g})]}),l.jsx("div",{className:C,children:l.jsxs(o,{className:V,href:u.url,"aria-label":`Ver mais sobre ${u.buildingHead.title}`,target:w.openCardLinkInNewTab?"_blank":void 0,children:[l.jsxs("div",{className:k,children:[l.jsx("p",{className:z,children:u.buildingHead.title}),l.jsx("span",{className:k,children:u.buildingHead.address})]}),l.jsx("div",{children:u.characteristics.map((({values:a,key:e},s)=>{const i=p(a);return l.jsxs("span",{className:L,children:[l.jsxs("i",{children:[!!i.minValue&&`${i.minValue} -`," ",i.maxValue]})," ",m(i.maxValue,c[e].label,c[e].inflection)]},s)}))}),u.contracts.map((({id:a,price:e},s)=>{const i=p(e.values);return l.jsxs("div",{className:I,children:[l.jsx("p",{className:B,children:d[a]}),l.jsxs("p",{className:T,children:[!!i.minValue&&`${e.currency} ${h(i.minValue)} -`," ",e.currency," ",h(i.maxValue)]})]},s)}))]})})]})}):l.jsx(t,{})},$=({images:a,url:e,target:s,lazyLoadImage:i})=>l.jsx(l.Fragment,{children:a&&(null==a?void 0:a.length)>1?l.jsx(u,{additionalClass:w,showBullets:!0,showPlayButton:!1,lazyLoad:i,showThumbnails:!1,showFullscreenButton:!1,items:D({images:a,url:e,target:s}),renderItem:a=>a,disableKeyDown:!0}):a&&a.length?l.jsx(o,{href:e,target:s,children:l.jsx(_,{alt:a[0].alt??a[0].title,title:a[0].alt??a[0].title,image:a[0],sizes:"300px",className:"image-gallery-image"})},1):l.jsx(g,{redirectLink:e})}),D=({images:a,url:e,target:s})=>a?a.map(((a,i)=>l.jsx(o,{href:e,target:s,children:l.jsx(_,{title:a.alt??a.title,image:a??{src:"/static/images/placeholder_image.webp"},sizes:"300px",className:"image-gallery-image"})},i))):[l.jsx(o,{href:e,target:s,children:l.jsx(_,{alt:"Sem imagem",title:"Sem imagem",image:{src:"/static/images/placeholder_image.webp"},className:"image-gallery-image"})},1)],F=({componentConfig:a})=>{let e;return a&&a.showMap&&(e=a.showMap),l.jsx(x,{buildingType:"condominium",listBackendPath:"/real-estate-data/condominiums",filterBackendPath:"/real-estate-data/property/filter/tabs/options",mapBackendPath:"/real-estate-data/condominiums/map-markers",cardComponent:H,showMap:e})};export{F as default};