{"version":3,"file":"isAllowedContentTypesForRelations.mjs","sources":["../../../admin/src/utils/isAllowedContentTypesForRelations.ts"],"sourcesContent":["import type { ContentType } from '../types';\n\nexport const isAllowedContentTypesForRelations = (\n  contentType: Partial<Pick<ContentType, 'kind' | 'restrictRelationsTo'>>\n) => {\n  return (\n    contentType.kind === 'collectionType' &&\n    (contentType.restrictRelationsTo === null ||\n      (Array.isArray(contentType.restrictRelationsTo) &&\n        contentType.restrictRelationsTo.length > 0))\n  );\n};\n"],"names":["isAllowedContentTypesForRelations","contentType","kind","restrictRelationsTo","Array","isArray","length"],"mappings":"AAEO,MAAMA,oCAAoC,CAC/CC,WAAAA,GAAAA;IAEA,OACEA,WAAAA,CAAYC,IAAI,KAAK,gBAAA,KACpBD,WAAAA,CAAYE,mBAAmB,KAAK,IAAA,IAClCC,KAAAA,CAAMC,OAAO,CAACJ,WAAAA,CAAYE,mBAAmB,CAAA,IAC5CF,WAAAA,CAAYE,mBAAmB,CAACG,MAAM,GAAG,CAAC,CAAA;AAElD;;;;"}