{"version":3,"file":"util.cjs","sources":["../../../../src/grafana/mocks/util.ts"],"sourcesContent":["import { faker } from '@faker-js/faker';\nimport { upperFirst } from 'lodash';\n\nexport const DEFAULT_NAMESPACE = 'default' as const;\n\n// this function is used for MSW endpoints\nexport const getAPIBaseURLForMocks = (group: string, version: string, path: `/${string}` = '/') =>\n  `/apis/${group}/${version}/namespaces/default${path}` as const;\n\n// example: \"Likeable sea lion\"\nexport const generateTitle = () => upperFirst(`${faker.word.adjective()} ${faker.animal.type()}`);\n\nexport const generateResourceVersion = () => faker.string.alphanumeric({ length: 16, casing: 'lower' });\n\nexport const generateUID = () => faker.string.alphanumeric({ length: 32, casing: 'mixed' });\n"],"names":["upperFirst","faker"],"mappings":";;;;;;;;AAGO,MAAM,iBAAA,GAAoB;AAG1B,MAAM,qBAAA,GAAwB,CAAC,KAAA,EAAe,OAAA,EAAiB,IAAA,GAAqB,GAAA,KACzF,CAAA,MAAA,EAAS,KAAK,CAAA,CAAA,EAAI,OAAO,CAAA,mBAAA,EAAsB,IAAI,CAAA;AAG9C,MAAM,aAAA,GAAgB,MAAMA,iBAAA,CAAW,CAAA,EAAGC,WAAA,CAAM,IAAA,CAAK,SAAA,EAAW,CAAA,CAAA,EAAIA,WAAA,CAAM,MAAA,CAAO,IAAA,EAAM,CAAA,CAAE;AAEzF,MAAM,uBAAA,GAA0B,MAAMA,WAAA,CAAM,MAAA,CAAO,YAAA,CAAa,EAAE,MAAA,EAAQ,EAAA,EAAI,MAAA,EAAQ,OAAA,EAAS;AAE/F,MAAM,WAAA,GAAc,MAAMA,WAAA,CAAM,MAAA,CAAO,YAAA,CAAa,EAAE,MAAA,EAAQ,EAAA,EAAI,MAAA,EAAQ,OAAA,EAAS;;;;;;;;"}