{"version":3,"file":"consts.cjs","sources":["../../../../src/grafana/notificationPolicies/consts.ts"],"sourcesContent":["import { type RoutingTree } from '@grafana/api-clients/rtkq/notifications.alerting/v0alpha1';\n\nexport const USER_DEFINED_TREE_NAME = 'user-defined';\n\n/**\n * Check if the given routing tree is the default (user-defined) policy tree.\n *\n */\nexport function isDefaultRoutingTree(tree: RoutingTree): boolean {\n  return tree.metadata.name === USER_DEFINED_TREE_NAME;\n}\n"],"names":[],"mappings":";;;;;AAEO,MAAM,sBAAA,GAAyB;AAM/B,SAAS,qBAAqB,IAAA,EAA4B;AAC/D,EAAA,OAAO,IAAA,CAAK,SAAS,IAAA,KAAS,sBAAA;AAChC;;;;;"}