{"version":3,"file":"CQV8HWLi.js","sources":["../../../../src/components/meta/utils/pageSchema/getPostPageSchema.ts"],"sourcesContent":["import dayjs from '~~/src/helpers/dayJs';\nimport type { PostPage } from '~~/src/server/transformers/page/postPage';\nexport default function getPostPageSchema(page: PostPage): any {\n const datePublished = dayjs(page.post.date ?? dayjs()).format();\n /**\n * @TODO Add dateModified\n */\n return [\n defineArticle({\n headline: page.post.title,\n description: page.post.description,\n potentialAction: 'ReadAction',\n keywords: page.post.tags?.map((x) => x.title)?.join(',') as any,\n isAccessibleForFree: true,\n audience: [\n 'dentists',\n 'dentalAssistants',\n 'assistantDentists',\n 'dentalAdministrativeAssistants',\n ],\n image: page.post.image?.mobile.url,\n datepublished: datePublished,\n author: page.post.author\n ? {\n name: `${page.post.author.firstName} ${page.post.author.lastName} `,\n }\n : null,\n }),\n ];\n}\n"],"names":["getPostPageSchema","page","dayjs"],"mappings":"wDAEA,SAAwBA,EAAkBC,EAAqB,CACvC,OAAAC,EAAMD,EAAK,KAAK,MAAQC,EAAM,CAAC,EAAE,OAAO,EAIvD,CAAA,EAoBJ,CAEL"}