/* eslint-disable no-new */ import Vue from 'vue'; import pdfLab from '../../pdf/index.vue'; export default () => { const el = document.getElementById('js-pdf-viewer'); return new Vue({ el, data() { return { error: false, loadError: false, loading: true, pdf: el.dataset.endpoint, }; }, components: { pdfLab, }, methods: { onLoad() { this.loading = false; }, onError(error) { this.loading = false; this.loadError = true; this.error = error; }, }, template: `
An error occured whilst loading the file. Please try again later. An error occured whilst decoding the file.