{"version":3,"file":"useOrgaComputed-BjmDuZ1F.mjs","names":[],"sources":["../src/components/composable/useOrgaComputed.ts"],"sourcesContent":["import { computed } from \"vue\";\nimport { useAuthStore } from \"../../stores/AuthStore\";\nimport { state } from \"../../stores/ParamSdkStore\";\n\nexport const useOrgaComputed = ()=>{\n\n  const authStore = useAuthStore();\n\n  const isPodcastmaker = computed(() =>state.generalParameters.podcastmaker as boolean);\n\n  function isEditRights(orgaId?: string, condition = true){\n    return (\n      (condition && undefined!==authStore.authOrgaId&&\n        authStore.authOrgaId === orgaId) ||\n        authStore.isRoleAdmin\n    );\n  }\n\n  return {\n    isPodcastmaker,\n    isEditRights,\n    authOrgaId: authStore.authOrgaId\n  }\n}\n"],"mappings":";;;AAIA,IAAa,wBAAsB;CAEjC,MAAM,YAAY,aAAa;CAE/B,MAAM,iBAAiB,eAAc,MAAM,kBAAkB,YAAuB;CAEpF,SAAS,aAAa,QAAiB,YAAY,MAAK;EACtD,OACG,aAAa,KAAA,MAAY,UAAU,cAClC,UAAU,eAAe,UACzB,UAAU;CAEhB;CAEA,OAAO;EACL;EACA;EACA,YAAY,UAAU;CACxB;AACF"}