{"version":3,"file":"DqeB3dSP.js","sources":["../../../../utils/useFormatDate.ts","../../../../components/Post.vue","../../../../public/data/posts.ts"],"sourcesContent":["export function formatDate(dateString: string, lang: string): string {\n const date = new Date(dateString);\n\n if (isNaN(date.getTime())) {\n throw new Error(\"Fecha inválida\");\n }\n\n const monthNames = {\n en: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n es: [\"Ene\", \"Feb\", \"Mar\", \"Abr\", \"May\", \"Jun\", \"Jul\", \"Ago\", \"Sep\", \"Oct\", \"Nov\", \"Dic\"]\n };\n\n const month = monthNames[lang][date.getMonth()];\n const day = date.getDate();\n const year = date.getFullYear();\n\n if (lang === \"es\") {\n return `${day < 10 ? '0' + day : day} ${month}, ${year}`;\n } else {\n return `${month} ${day < 10 ? '0' + day : day}, ${year}`;\n }\n}\n","\n\n\n\n\n","import type { Post } from '@/types'\nimport workers from './workers'\n\nconst posts: Post[] = [\n {\n id: {\n es: 'transformacion-de-una-edav-en-una-socimi',\n en: 'transformation-of-an-edav-into-a-reit'\n },\n title: {\n en: \"Transformation of an EDAV into a SOCIMI: The New Trend in BTR\",\n es: 'Transformación de una EDAV en SOCIMI: La nueva tendencia en BTR'\n },\n description: {\n en: \"Transform an EDAV into a SOCIMI within one year of acquiring the assets without losing the 4% VAT tax rate. Discover the benefits of listing on Portfolio Stock Exchange.\",\n es: \"Transforma una EDAV en SOCIMI una vez transcurrido el primer año desde la adquisición de los activos sin perder la tributación por IVA del 4%. Descubre los beneficios al cotizar en Portfolio Stock Exchange.\"\n },\n categories: ['Socimi', 'Edav'],\n date: '2024-09-09',\n media: \"transformation-of-an-edav-into-a-reit.jpg\",\n author: workers.santiago\n }, {\n id: {\n es: 'socimi-de-centros-de-datos',\n en: 'data-center-socimi'\n },\n title: {\n en: \"Data center SOCIMI (spanish REIT)\",\n es: 'SOCIMI de centros de datos'\n },\n description: {\n en: \"The explosive growth of the digital economy has increased the demand for data centers, critical infrastructures for global connectivity. If you have invested or own this type of assets, structuring them as a SOCIMI can provide an efficient way to maximize their profitability.\",\n es: \"El crecimiento explosivo de la economía digital ha incrementado la demanda de centros de datos, infraestructuras críticas para la conectividad global. Si has invertido o eres propietario de este tipo de inmuebles, estructurarlos como SOCIMI puede ofrecerte una forma eficiente de maximizar su rentabilidad.\"\n },\n categories: ['Socimi', 'Data Center'],\n date: '2025-02-18',\n media: \"data-center-socimi.jpg\",\n author: workers.santiago\n }]\n\nexport default posts\n"],"names":["formatDate","dateString","lang","date","month","day","year","locale","useI18n","image","computed","props","__props","posts","workers"],"mappings":"iMAAO,SAAAA,EAAAC,EAAAC,EAAA,CACL,MAAAC,EAAA,IAAA,KAAAF,CAAA,EAEA,GAAA,MAAAE,EAAA,QAAA,CAAA,EACE,MAAA,IAAA,MAAA,gBAAA,EAQF,MAAAC,EALA,CAAmB,GAAA,CAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,KAAA,EACsE,GAAA,CAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,MAAA,KAAA,CACA,EAGzFF,CAAA,EAAAC,EAAA,SAAA,CAAA,EACAE,EAAAF,EAAA,UACAG,EAAAH,EAAA,cAEA,OAAAD,IAAA,KACE,GAAAG,EAAA,GAAA,IAAAA,EAAAA,CAAA,IAAAD,CAAA,KAAAE,CAAA,GAEA,GAAAF,CAAA,IAAAC,EAAA,GAAA,IAAAA,EAAAA,CAAA,KAAAC,CAAA,EAEJ,4XCaE,KAAA,CAAA,OAAAC,GAAAC,IACAC,EAAAC,EAAA,IAAA,gBAAAH,EAAA,KAAA,IAAAI,EAAA,KAAA,KAAA,EAAA,EAEAA,EAAAC,q5BClCFC,EAAA,CAAsB,CACpB,GAAA,CACM,GAAA,2CACE,GAAA,uCACA,EACN,MAAA,CACO,GAAA,gEACD,GAAA,iEACA,EACN,YAAA,CACa,GAAA,4KACP,GAAA,gNACA,EACN,WAAA,CAAA,SAAA,MAAA,EAC6B,KAAA,aACvB,MAAA,4CACC,OAAAC,EAAA,QACS,EAClB,CAAG,GAAA,CACG,GAAA,6BACE,GAAA,oBACA,EACN,MAAA,CACO,GAAA,oCACD,GAAA,4BACA,EACN,YAAA,CACa,GAAA,uRACP,GAAA,oTACA,EACN,WAAA,CAAA,SAAA,aAAA,EACoC,KAAA,aAC9B,MAAA,yBACC,OAAAA,EAAA,QACS,CACjB"}