{"version":3,"file":"DatasetCitationModal.vue.mjs","sources":["../../lib/citation/DatasetCitationModal.vue"],"sourcesContent":["<template>\n  <div class=\"modal fade\" id=\"citationModal\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"deleteModalLabel\"\n    aria-hidden=\"true\" data-cy=\"citation-modal\">\n    <div class=\"modal-dialog modal-lg\" role=\"document\">\n      <div class=\"modal-content\">\n        <div class=\"modal-header\">\n          <h2 class=\"modal-title\" id=\"deleteModalLabel\">\n            {{ $t('message.cite.title') }}\n          </h2>\n          <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\" data-cy=\"citation-modal-close\">\n            <span aria-hidden=\"true\">&times;</span>\n          </button>\n        </div>\n        <div class=\"modal-body\">\n          <dataset-citation-table\n            v-if=\"citationStyle && !getLoading && getID\"\n            :modal-id=\"modalId\"\n            :citation-style=\"citationStyle\"\n            :available-citation-styles=\"availableCitationStyles\"\n          />\n        </div>\n        <!-- Export options -->\n        <!-- Currently unused but might be useful in the future -->\n        <!-- <div v-if=\"false\" class=\"modal-footer\">\n          <button v-for=\"({name, args, postprocess, extension, disabled}, format) in exportFormats\"\n            :key=\"`format@${format}`\" type=\"button\" class=\"btn btn-link\" :disabled=\"disabled || getLoading || !citation\"\n            @click=\"handleCitationExport({ args, postprocess, extension, filename: getID })\">\n            {{ name }}\n          </button>\n        </div> -->\n      </div>\n    </div>\n  </div>\n</template>\n\n<script>\nimport { defineAsyncComponent } from 'vue';\nimport { mapGetters } from \"vuex\";\n\nexport default {\n  components: {\n    //  Lazy-load DatasetCitationTable\n    DatasetCitationTable: defineAsyncComponent(() =>  import(/* webpackChunkName: \"dataset-citation-table\" */ \"./DatasetCitationTable.vue\")),\n  },\n  props: {\n    modalId: {\n      type: String,\n      default: 'citationModal',\n    },\n    citationStyle: {\n      type: String,\n      default: '',\n    },\n    availableCitationStyles: {\n      type: Object,\n      required: true,\n    },\n  },\n  computed: {\n    ...mapGetters('datasetDetails', [\n      'getLoading',\n      'getID'\n    ]),\n  }\n}\n</script>\n"],"names":["_sfc_main","defineAsyncComponent","mapGetters","_hoisted_3","_hoisted_4","_hoisted_6","_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_hoisted_2","_hoisted_5","_toDisplayString","_ctx","$props","_createBlock","_component_dataset_citation_table"],"mappings":";;;AAuCA,MAAKA,IAAU;AAAA,EACb,YAAY;AAAA;AAAA,IAEV,sBAAsBC,EAAqB,MAAO;AAAA;AAAA,MAAwD;AAAA,IAA4B,CAAC;AAAA,EACxI;AAAA,EACD,OAAO;AAAA,IACL,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,eAAe;AAAA,MACb,MAAM;AAAA,MACN,SAAS;AAAA,IACV;AAAA,IACD,yBAAyB;AAAA,MACvB,MAAM;AAAA,MACN,UAAU;AAAA,IACX;AAAA,EACF;AAAA,EACD,UAAU;AAAA,IACR,GAAGC,EAAW,kBAAkB;AAAA,MAC9B;AAAA,MACA;AAAA,IACF,CAAC;AAAA,EACH;AACF;EA/DO,OAAM;AAAA,EAAa,IAAG;AAAA,EAAgB,UAAS;AAAA,EAAK,MAAK;AAAA,EAAS,mBAAgB;AAAA,EACrF,eAAY;AAAA,EAAO,WAAQ;;EACtB,OAAM;AAAA,EAAwB,MAAK;GACjCC,IAAA,EAAA,OAAM,gBAAe,GACnBC,IAAA,EAAA,OAAM,eAAc;EACnB,OAAM;AAAA,EAAc,IAAG;GAOxBC,IAAA,EAAA,OAAM,aAAY;;;AAZ7B,SAAAC,EAAA,GAAAC,EA+BM,OA/BNC,GA+BM;AAAA,IA7BJC,EA4BM,OA5BNC,GA4BM;AAAA,MA3BJD,EA0BM,OA1BNN,GA0BM;AAAA,QAzBJM,EAOM,OAPNL,GAOM;AAAA,UANJK,EAEK,MAFLE,GAEKC,EADAC,EAAE,GAAA,oBAAA,CAAA,GAAA,CAAA;AAAA;0BAEPJ,EAES,UAAA;AAAA,YAFD,MAAK;AAAA,YAAS,OAA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