2FAuth/public/build/assets/CopyButton-B9az3SKR.js.map
2024-11-27 12:03:02 +01:00

1 line
1.1 KiB
Plaintext

{"version":3,"file":"CopyButton-B9az3SKR.js","sources":["../../../resources/js/components/CopyButton.vue"],"sourcesContent":["<script setup>\n import { useNotifyStore } from '@/stores/notify'\n\n const notify = useNotifyStore()\n const { copy } = useClipboard({ legacy: true })\n\n const props = defineProps({\n token: String,\n })\n\n function copyToClipboard() {\n copy(props.token)\n notify.success({ text: trans('commons.copied_to_clipboard') })\n }\n</script>\n\n<template>\n <button type=\"button\" :aria-label=\"$t('commons.copy_to_clipboard')\" :title=\"$t('commons.copy_to_clipboard')\" class=\"button is-like-text is-pulled-right is-small is-text\" @click.stop=\"copyToClipboard()\">\n <FontAwesomeIcon :icon=\"['fas', 'copy']\" />\n </button>\n</template>"],"names":["notify","useNotifyStore","copy","useClipboard","props","__props","copyToClipboard","trans"],"mappings":"yPAGI,MAAMA,EAASC,EAAc,EACvB,CAAE,KAAAC,CAAM,EAAGC,EAAa,CAAE,OAAQ,EAAM,CAAA,EAExCC,EAAQC,EAId,SAASC,GAAkB,CACvBJ,EAAKE,EAAM,KAAK,EAChBJ,EAAO,QAAQ,CAAE,KAAMO,EAAM,6BAA6B,CAAG,CAAA,CACrE"}