{"version":3,"file":"utils.mjs","sources":["../../../server/src/preview/utils.ts"],"sourcesContent":["import type { Core } from '@strapi/types';\n\ntype PreviewServices = typeof import('./services').services;\n\nfunction getService(strapi: Core.Strapi, name: T) {\n // Cast is needed because the return type of strapi.service is too vague\n return strapi.service(`plugin::content-manager.${name}`) as ReturnType;\n}\n\nexport { getService };\n"],"names":["getService","strapi","name","service"],"mappings":"AAIA,SAASA,UAAAA,CAA4CC,MAAmB,EAAEC,IAAO,EAAA;;AAE/E,IAAA,OAAOD,OAAOE,OAAO,CAAC,CAAC,wBAAwB,EAAED,KAAK,CAAC,CAAA;AACzD;;;;"}