{"version":3,"file":"useContextMenu2.mjs","sources":["../../../../../../packages/hooks/web/useContextMenu.ts"],"sourcesContent":["import { getCurrentInstance, onUnmounted } from 'vue'\nimport {\n  createContextMenu,\n  destroyContextMenu,\n} from '@tav-ui/components/context-menu/src/context-menu-method'\n\nexport function useContextMenu(authRemove = true) {\n  if (getCurrentInstance() && authRemove) {\n    onUnmounted(() => {\n      destroyContextMenu()\n    })\n  }\n  return [createContextMenu, destroyContextMenu]\n}\n"],"names":[],"mappings":";;;AAKO,SAAS,cAAc,CAAC,UAAU,GAAG,IAAI,EAAE;AAClD,EAAE,IAAI,kBAAkB,EAAE,IAAI,UAAU,EAAE;AAC1C,IAAI,WAAW,CAAC,MAAM;AACtB,MAAM,kBAAkB,EAAE,CAAC;AAC3B,KAAK,CAAC,CAAC;AACP,GAAG;AACH,EAAE,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;AACjD;;;;"}