PageSourceSearch

https://www.costarica.com/_next/static/chunks/158.a413382ce33146e8.js

js costarica.com collected 2026-10-02 07:33:40 UTC 11,640 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[158],{158:(e,l,a)=>{a.r(l),a.d(l,{default:()=>f});var r=a(37876),s=a(75961),i=a.n(s),n=a(14232),t=a(64778),o=a(6040),c=a(53885),d=a(44546),u=a(65828);let m=e=>{var l;let{buildingDetailsData:a=[],accordionTitle:s="No Title Given",exteriorTitle:i="Exterior",propertyType:n,currentPropertyCollection:t=[],collectionAdditionalData:c=[]}=e,d=e=>{var l;let{item:a}=e;return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{children:a.key}),(0,r.jsx)("table",{class:"table table-inverse table mb-5 border-bottom table-responsive-sm",children:null==(l=a.value)?void 0:l.map((e,l)=>0===l?(0,r.jsx)("thead",{class:"thead-light",children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("th",{children:(0,u.UH)(null==e?void 0:e.key)}),(0,r.jsx)("th",{children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.value}})})]})}):(0,r.jsx)("tbody",{children:(0,r.jsxs)("tr",{children:[(0,r.jsx)("td",{class:"bg-gray",children:(0,u.UH)(null==e?void 0:e.key)}),(0,r.jsx)("td",{class:"bg-gray",children:(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:(0,o.internationalNumberFormat)(null==e?void 0:e.value)}})})]})}))})]})},m=s.replace(/\s+/g,"");return null==(l=c[0])||l.construction,(0,r.jsx)(r.Fragment,{children:a.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:"description-title",children:(0,r.jsx)("a",{"data-toggle":"collapse",href:"#".concat(m),role:"button","aria-expanded":"false","aria-controls":"collapseExample",children:s})}),(0,r.jsx)("div",{className:"collapse description-body",id:m,children:null==a?void 0:a.map((e,l)=>(0,r.jsx)(r.Fragment,{children:e.value&&((e,l)=>{if("list"===e.type){if(e.value.length>0)return(0,r.jsx)(d,{item:e})}else if("group"===e.type){var a;return(0,r.jsx)("ul",{className:"list-disc",children:null==(a=e.value)?void 0:a.map((e,l)=>{if(e.mainValue)return(0,r.jsxs)("li",{children:[(0,r.jsxs)("strong",{children:[e.key,": "]}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.value}})]},l)})})}})(e,0)}))})]}):""})};var h=a(50184),x=a(47257);let f=e=>{var l,a,s,u,f,j,v,g,p,y,b,A;let{propertyCollection:N,currentCollection:F,locationCollection:S}=e,[k,U]=(0,n.useState)([{construction:[]}]);(0,n.useEffect)(()=>{var e,l,a,r,s;let i=[{key:"Gross Floor Area",value:((e,l)=>{let a="";return e&&(a="".concat((0,o.internationalNumberFormat)(e)," m\xb2")),l&&(a+=" (".concat((0,o.internationalNumberFormat)(l)," sq ft)")),a})(null==(e=F[0])?void 0:e.constructionSize,null==(l=F[0])?void 0:l.constructionSizeSqFt)},{key:"Construction Status",value:null==(a=F[0])?void 0:a.constructionStatus.join(", ")},{key:"Year Built",value:null==(r=F[0])?void 0:r.yearBuilt},{key:"Last Year Updated",value:null==(s=F[0])?void 0:s.yearUpdated}];k[0].construction=i},[]);let[C,H]=(0,n.useState)([]),L=e=>0!==e.length&&e.some(e=>{if(Array.isArray(e)&&!(e.length>0))return!1;return e});return(0,n.useEffect)(()=>{H((()=>{var e,l,a,r,s,i,n,t,c,d,u,m,h,x,f,j,v,g,p,y,b,A,N,S;let k=[],U=[];return L([null==(e=F[0])?void 0:e.buildingSize])&&U.push({key:"Building Size",value:"".concat((0,o.internationalNumberFormat)(null==(u=F[0])?void 0:u.buildingSize)," m\xb2"),mainValue:null==(m=F[0])?void 0:m.buildingSize}),L([null==(l=F[0])?void 0:l.grossLeasableArea])&&U.push({key:"Gross leasable area",value:"".concat((0,o.internationalNumberFormat)(null==(h=F[0])?void 0:h.grossLeasableArea),"  m\xb2"),mainValue:null==(x=F[0])?void 0:x.grossLeasableArea}),L([null==(a=F[0])?void 0:a.buildingHeight])&&U.push({key:"Building Height",value:"".concat((0,o.internationalNumberFormat)(null==(f=F[0])?void 0:f.buildingHeight)," m."),mainValue:null==(j=F[0])?void 0:j.buildingHeight}),L([null==(r=F[0])?void 0:r.numberOfFloors])&&U.push({key:"Number of Floors",value:"".concat(null==(v=F[0])?void 0:v.numberOfFloors),mainValue:null==(g=F[0])?void 0:g.numberOfFloors}),U.length>0&&k.push({key:"Group 1",value:U,type:"group"}),L([null==(s=F[0])?void 0:s.floorToFloorHeights])&&k.push({key:"Floor to Floor Heights",value:null==(p=F[0])?void 0:p.floorToFloorHeights,type:"list"}),L([null==(i=F[0])?void 0:i.ceilingHeights])&&k.push({key:"Ceiling Heights",value:null==(y=F[0])?void 0:y.ceilingHeights,type:"list"}
1),L([null==(n=F[0])?void 0:n.stairwayWidth])&&k.push({key:"Stairway Width",value:null==(b=F[0])?void 0:b.stairwayWidth,type:"list"}),L([null==(t=F[0])?void 0:t.grossLeasableAreaPerFloor])&&k.push({key:"Gross Leasable Area per Floor",value:null==(A=F[0])?void 0:A.grossLeasableAreaPerFloor,type:"list"}),L([null==(c=F[0])?void 0:c.condoUnitAreas])&&k.push({key:"Unit Areas",value:null==(N=F[0])?void 0:N.condoUnitAreas,type:"list"}),L([null==(d=F[0])?void 0:d.numberOfOfficesUnitsPerFloor])&&k.push({key:"Number of Offices/Units per Floor:",value:null==(S=F[0])?void 0:S.numberOfOfficesUnitsPerFloor,type:"list"}),k})())},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i(),{id:"352f736fd574a69f",children:".location-features.jsx-352f736fd574a69f li.jsx-352f736fd574a69f{line-height:40px}"}),(0,r.jsx)("h4",{className:"jsx-352f736fd574a69f",children:"Facts"}),(0,r.jsxs)("ul",{className:"jsx-352f736fd574a69f location-features list-unstyled",children:[(0,r.jsx)(t.A,{dataArray:[F[0].rooms],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["Rooms: ",(0,o.internationalNumberFormat)(F[0].rooms)]})}),(0,r.jsx)(t.A,{dataArray:[F[0].bathrooms],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsx)("i",{className:"jsx-352f736fd574a69f icon-icon-bathrooms"}),"Baths: ",(0,o.internationalNumberFormat)(F[0].bathrooms)]})}),(0,r.jsx)(t.A,{dataArray:[F[0].halfBathrooms],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsx)("i",{className:"jsx-352f736fd574a69f icon-icon-bathrooms"}),"Half Bathrooms: ",(0,o.internationalNumberFormat)(F[0].halfBathrooms)]})}),(0,r.jsx)(t.A,{dataArray:[null==(l=F[0])?void 0:l.constructionSize,null==(a=F[0])?void 0:a.constructionSizeSqFt],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsxs)(t.A,{dataArray:[null==(s=F[0])?void 0:s.constructionSize],children:["Area: ",(0,o.internationalNumberFormat)(null==(u=F[0])?void 0:u.constructionSize)," m",(0,r.jsx)("sup",{className:"jsx-352f736fd574a69f",children:"2"})]}),(0,r.jsxs)(t.A,{dataArray:[null==(f=F[0])?void 0:f.constructionSizeSqFt],dataType:"number",children:[" ","(",(0,o.internationalNumberFormat)(parseFloat(null==(j=F[0])?void 0:j.constructionSizeSqFt))," ac)"]})]})}),(0,r.jsx)(t.A,{dataArray:[F[0].parkingSpaces],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsx)("i",{className:"jsx-352f736fd574a69f icon-icon-car"}),"Parking Spaces: ",(0,o.internationalNumberFormat)(F[0].parkingSpaces)]})}),(0,r.jsx)(t.A,{dataArray:[N.price],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsx)("i",{className:"jsx-352f736fd574a69f icon-icon-price"}),"Price: ",(0,o.formatToUSCurrency)(N.price)," USD"]})}),(0,r.jsx)(t.A,{dataArray:[N.rentPrice],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:[(0,r.jsx)("i",{className:"jsx-352f736fd574a69f icon-icon-price"}),"Rent Price: ",(0,o.formatToUSCurrency)(N.rentPrice)," USD / mo"]})}),(0,r.jsx)(t.A,{dataArray:[N.maintenanceFee],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["CAM Fees: ",(0,o.formatToUSCurrency)(N.maintenanceFee)," USD / mo"]})}),(0,r.jsx)(t.A,{dataArray:[F[0].pricePerSquareMeter],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["Price / m",(0,r.jsx)("sup",{className:"jsx-352f736fd574a69f",children:"2"}),": ",(0,o.formatToUSCurrency)(F[0].pricePerSquareMeter)," USD"]})}),(0,r.jsx)(t.A,{dataArray:[F[0].camFeesPerSquareMeter],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["CAM / m",(0,r.jsx)("sup",{className:"jsx-352f736fd574a69f",children:"2"}),": ",(0,o.formatToUSCurrency)(F[0].camFeesPerSquareMeter)," USD / mo"]})}),(0,r.jsx)(t.A,{dataArray:[F[0].capRate],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["CAP Rate: ",F[0].capRate," %"]})}),(0,r.jsx)(t.A,{dataArray:[F[0].grossLeasableArea],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["Gross Leasable Area: ","".concat((0,o.internationalNumberFormat)(null==(v=F[0])?void 0:v.grossLeasableArea)," m\xb2")]})}),(0,r.jsx)(t.A,{dataArray:[F[0].distressed],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["Distressed: ",F[0].distressed]})}),(0,r.jsx)(t.A,{dataArray:[N.mls],children:(0,r.jsxs)("li",{className:"jsx-352f736fd574a69f d-inline-block mr-3 mr-lg-5",children:["MLS: ",(0,r.jsxs)(t.A,{dataArray:[null==N||null==(p=N.location[0])||null==(g=p.province[0])?void 0:g.provinceIsoCode],children:[null==N||null==(A=N.location[0])||null==(b=A.province[0])||null==(y=b.provinceIsoCode)?void 0:y.toUpperCase(),"-"]}),N.mls]})}),(0,r.jsx)(x.a,{locationCollection:S})]}),(0,r.jsx)("hr",{className:"jsx-352f736fd574a69f"}),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.A,{dataArray:[N.features],children:(0,r.jsx)(c.A,{achivementCollection:N.features,achviementName:"Features"})}),(0,r.jsx)(t.A,{dataArray:[k,N.exterior],children:(0,r.jsx)(d.A,{collectionAdditionalData:k,currentPropertyCollection:F,exterior
1Collection:N.exterior,achviementName:"Construction",exteriorTitle:"Exterior"})}),(0,r.jsx)(m,{accordionTitle:"Building Details",buildingDetailsData:C}),(0,r.jsx)(h.A,{achviementName:"Lot",lotSize:N.lotSize,area:N.lotSizeAcres,collection:F[0]})]})]})}},44546:(e,l,a)=>{a.d(l,{A:()=>i});var r=a(37876);a(14232);var s=a(64778);let i=e=>{var l;let{exteriorCollection:a=[],interiorCollection:i=[],achviementName:n="No Title Given",exteriorTitle:t="Exterior",propertyType:o,currentPropertyCollection:c=[],collectionAdditionalData:d=[]}=e,u=n.replace(/\s+/g,""),m=null==(l=d[0])?void 0:l.construction;return(0,r.jsx)(r.Fragment,{children:(null==a?void 0:a.length)>0||(null==i?void 0:i.length)>0||d.length>0?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h4",{className:"description-title",children:(0,r.jsx)("a",{"data-toggle":"collapse",href:"#".concat(u),role:"button","aria-expanded":"false","aria-controls":"collapseExample",children:n})}),(0,r.jsxs)("div",{className:"collapse description-body",id:u,children:[(0,r.jsx)("ul",{className:"list-disc",children:null==m?void 0:m.map((e,l)=>(0,r.jsx)(s.A,{dataArray:[null==e?void 0:e.value],children:(0,r.jsxs)("li",{children:[(0,r.jsxs)("strong",{children:[e.key,": "]}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:e.value}})]},l)}))}),i.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{children:"Interior"}),(0,r.jsx)("ul",{className:"list-chevron",children:null==i?void 0:i.map((e,l)=>(0,r.jsx)(s.A,{dataArray:[null==e?void 0:e.value],children:(0,r.jsxs)("li",{children:[(0,r.jsxs)("strong",{children:[null==e?void 0:e.key,": "]}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.value}})]},l)}))})]}),a.length>0&&(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("h5",{children:t}),(0,r.jsx)("ul",{className:"list-chevron",children:null==a?void 0:a.map((e,l)=>(0,r.jsx)(s.A,{dataArray:[null==e?void 0:e.value],children:(0,r.jsxs)("li",{children:[(0,r.jsxs)("strong",{children:[null==e?void 0:e.key,": "]}),(0,r.jsx)("span",{dangerouslySetInnerHTML:{__html:null==e?void 0:e.value}})]},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.