{"version":3,"file":"usePrimitiveElement.cjs","sources":["../../src/Primitive/usePrimitiveElement.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\nimport { unrefElement } from '@vueuse/core'\nimport { computed, ref } from 'vue'\n\nexport function usePrimitiveElement() {\n const primitiveElement = ref()\n const currentElement = computed(() => ['#text', '#comment'].includes(primitiveElement.value?.$el.nodeName) ? primitiveElement.value?.$el.nextElementSibling : unrefElement(primitiveElement))\n\n return {\n primitiveElement,\n currentElement,\n }\n}\n"],"names":["ref","computed","unrefElement"],"mappings":";;;;;AAIO,SAAS,mBAAyD,GAAA;AACvE,EAAA,MAAM,mBAAmBA,OAAO,EAAA;AAChC,EAAA,MAAM,iBAAiBC,YAAsB,CAAA,MAAM,CAAC,OAAS,EAAA,UAAU,EAAE,QAAS,CAAA,gBAAA,CAAiB,OAAO,GAAI,CAAA,QAAQ,IAAI,gBAAiB,CAAA,KAAA,EAAO,IAAI,kBAAqB,GAAAC,iBAAA,CAAa,gBAAgB,CAAC,CAAA;AAEzM,EAAO,OAAA;AAAA,IACL,gBAAA;AAAA,IACA;AAAA,GACF;AACF;;;;"}