{"version":3,"file":"FootnoteReference-ledZyqJ3.mjs","names":[],"sources":["../src/components/templates/FootnoteReference.vue"],"sourcesContent":["<template>\n  <router-link v-if=\"isInternalReference(node)\" :to=\"routeDescription\">\n    [{{ node.textContent }}]\n  </router-link>\n  <a v-else :href=\"node.getAttribute('refuri')\" target=\"_blank\">\n    [{{ node.textContent }}]\n  </a>\n</template>\n\n<script setup>\nimport { onMounted, toRefs, ref } from 'vue'\nimport { useRoute } from 'vue-router'\n\nimport { useMethods } from '../../composables/methods'\nimport { useBaseReference } from '../../composables/basereference'\n\nconst props = defineProps({\n  node: {\n    type: undefined,\n    default: null,\n  },\n  componentName: {\n    type: String,\n  },\n})\n\nconst routeDescription = ref({path: '', hash: ''})\nconst { node } = toRefs(props)\nconst route = useRoute()\n\nconst { isInternalReference } = useMethods()\nconst { onReferenceCreated } = useBaseReference(node.value, route, routeDescription)\n\nonMounted(onReferenceCreated)\n\n</script>\n"],"mappings":";;;;;;;;;;;;;;;EAgBA,IAAM,IAAQ,GAUR,IAAmB,EAAI;GAAC,MAAM;GAAI,MAAM;EAAE,CAAC,GAC3C,EAAE,YAAS,EAAO,CAAK,GACvB,IAAQ,EAAS,GAEjB,EAAE,2BAAwB,EAAW,GACrC,EAAE,0BAAuB,EAAiB,EAAK,OAAO,GAAO,CAAgB;SAEnF,EAAU,CAAkB;;GAhCP,OAAA,EAAA,CAAA,CAAmB,CAAC,EAAA,CAAA,CAAI,KAA3C,EAAA,GAAA,EAEc,GAAA;;IAFiC,IAAI,EAAA;;IAAkB,SAAA,QAClE,CADkE,EAAA,OAClE,EAAG,EAAA,CAAA,CAAI,CAAC,WAAW,IAAG,MACzB,CAAA,CAAA,CAAA;;GACA,GAAA,GAAA,CAAA,IAAA,CAAA,MAAA,EAAA,GAAA,EAEI,KAAA;;IAFO,MAAM,EAAA,CAAA,CAAI,CAAC,aAAY,QAAA;IAAY,QAAO;GAAS,GAAA,OAC3D,EAAG,EAAA,CAAA,CAAI,CAAC,WAAW,IAAG,MACzB,GAAA,CAAA"}