1"use strict";(self.webpackChunkapartment_search=self.webpackChunkapartment_search||[]).push([[9629,8808,348,1517,6839],{8808:(a,t,e)=>{e.r(t),e.d(t,{decimalFormat:()=>o,integerFormat:()=>i});const i=Intl.NumberFormat("fi-FI",{style:"currency",currency:"EUR",minimumFractionDigits:0,maximumFractionDigits:0}),o=Intl.NumberFormat("fi-FI",{style:"currency",currency:"EUR"})},9629:(a,t,e)=>{e.r(t),e.d(t,{default:()=>T});var i=e(6839),o=e(348),n=e(1517),l=e(8808);const r=a=>(0,i.capitalize)((a=>a.construction&&a.construction.ready&&"myynniss\xe4"===a.availability.toLowerCase()?"Muuttovalmis":a.availability)(a)+("varattu"===a.status.current.toLowerCase()?"":" ja varattavissa")),s=a=>{let t=[{label:"Huoneistotyyppi",value:a.features.roomTypes},{label:"Pinta-ala",value:a.sizeM2+" m2"},{label:"Myyntihinta",value:l.integerFormat.format(a.salesPrice)},{label:"Velaton hinta",value:l.integerFormat.format(a.salesPriceUnencumbered)},{label:"Kerros",value:a.floorLocation},{label:"Talotyyppi",value:(0,o.apartmentTypeToLabel)(a.type)}];return a.construction&&!a.construction.ready&&(t=[...t,{label:"Arvioitu valmistumisaika",value:a.construction.estimatedCompletion}]),t},u=a=>{const t=[{label:"Osoite",value:a.location.address},{label:"Hoitovastike",value:l.decimalFormat.format(a.maintenanceFee)+"/kk"},{label:"Rahoitusvastike lyhennysvapaan ajan",value:l.decimalFormat.format(a.financingFee)+"/kk"},{label:"Rahoitusvastike lyhennysvapaan j\xe4lkeen",value:l.decimalFormat.format(a.financingFeeIncludingInstallment)+"/kk"}];let e=(a=>{switch(a.siteType){case"OWN":return"Oma tontti";case"RENT":return"Vuokratontti";case"RENT_OPT":return"Valinnainen vuokra";default:return null}})(a);return e&&t.push({label:"Tontti",value:e}),a.siteCondomiumFee&&t.push({label:"Tontin vuokravastike",value:l.decimalFormat.format(a.siteCondomiumFee)}),a.siteRepurchacePrice&&t.push({label:"Tontin lunastushinta",value:l.integerFormat.format(a.siteRepurchacePrice)}),t},c=a=>{if(!a.showingTime||!a.showingTime.start)return null;const t=new Date(a.showingTime.start);if(t.getTime()>Date.now()){const e=(0,n.format)(t),i=(0,n.format)(new Date(a.showingTime.end));return{start:"".concat(e.day,".").concat(e.month," klo ").concat(e.hour,":").concat(e.minute),end:"".concat(i.hour,":").concat(i.minute)}}return null},m=a=>[a.floorPlanImage,a.plotPlanImage,...a.images],T=a=>({...a,status:a.status.current,statusText:r(a),available:"varattu"!==a.status.current.toLowerCase(),title:a.location.number+", "+a.housingCompanyName,titleLocation:a.location.region?a.location.region+", "+a.location.city:a.location.city,housingCompanyName:a.housingCompanyName,details:s(a),extraDetails:u(a),showingTime:c(a),images:m(a),size:a.sizeM2,price:a.salesPrice,priceUnencumbered:a.salesPriceUnencumbered})},348:(a,t,e)=>{e.r(t),e.d(t,{apartmentTypeToLabel:()=>o});const i={KT:"Kerrostalo",OT:"Omakotitalo",RT:"Rivitalo",PT:"Paritalo",ET:"Erillistalo",MO:"M\xf6kki/huvila",LH:"Lomahuoneisto",UL:"Loma-asunto ulkomailla",LO:"Lomaosake",OKTT:"Omakotitalotontti",VT:"Vapaa-ajan tontti",RTT:"Rivitalotontti",TO:"Tontti",AP:"Autopaikka",AT:"Autotalli",MAT:"Maatila",MET:"Mets\xe4tila",TOT:"Toimistotila",LT:"Liiketila",VART:"Varastotila",TUT:"Tuotantotila",PUUT:"Puutalo-osake",LUHT:"Luhtitalo"},o=a=>i[a]?i[a]:""},1517:(a,t,e)=>{e.r(t),e.d(t,{format:()=>o});const i=new Intl.DateTimeFormat("fi",{month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",timeZone:"Etc/GMT-2"}),o=a=>{const[{value:t},,{value:e},,{value:o},,{value:n}]=i.formatToParts(a);return{day:t,month:e,hour:o,minute:n}}},6839:(a,t,e)=>{e.r(t),e.d(t,{capitalize:()=>i});const i=a=>"string"!==typeof a?"":a.charAt(0).toUpperCase()+a.slice(1)}}]); 2//# sourceMappingURL=9629.6da7dbcc.chunk.js.map
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.