"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Common_1 = require("../Common");
const fsExtra = require("fs-extra");
const VueParse_1 = require("../../generator/VueParse");
const path = require("path");
const config_1 = require("../../../config");
class Dropzone extends Common_1.default {
    constructor(params = {}) {
        super();
        this.name = 'Dropzone';
        this.init();
    }
    init() {
        const fileStr = fsExtra.readFileSync(path.join(config_1.default.templatePath, 'Custom/Dropzone', 'comp.vue'), 'utf8');
        this.vueParse = new VueParse_1.default(this.uuid, fileStr);
    }
    fragment() {
        return `
      <dropzone id="dropzone${this.uuid}" url="https://httpbin.org/post" @dropzone-removedFile="dropzoneR" @dropzone-success="dropzoneS" />
    `;
    }
}
exports.default = Dropzone;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbGliL2FkYXB0ZXItdnVlL21vZHVsZXMvY3VzdG9tL0Ryb3B6b25lL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsc0NBQStCO0FBQy9CLG9DQUFvQztBQUNwQyx1REFBZ0Q7QUFDaEQsNkJBQTZCO0FBQzdCLDRDQUFxQztBQUdyQyxNQUFxQixRQUFTLFNBQVEsZ0JBQU07SUFNMUMsWUFBYSxTQUFjLEVBQUU7UUFDM0IsS0FBSyxFQUFFLENBQUM7UUFOVixTQUFJLEdBQVcsVUFBVSxDQUFDO1FBT3hCLElBQUksQ0FBQyxJQUFJLEVBQUUsQ0FBQztJQUNkLENBQUM7SUFFTyxJQUFJO1FBQ1YsTUFBTSxPQUFPLEdBQUcsT0FBTyxDQUFDLFlBQVksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLGdCQUFNLENBQUMsWUFBWSxFQUFFLGlCQUFpQixFQUFFLFVBQVUsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxDQUFDO1FBQzVHLElBQUksQ0FBQyxRQUFRLEdBQUcsSUFBSSxrQkFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDbkQsQ0FBQztJQUVNLFFBQVE7UUFDYixPQUFPOzhCQUNtQixJQUFJLENBQUMsSUFBSTtLQUNsQyxDQUFDO0lBQ0osQ0FBQztDQUNGO0FBckJELDJCQXFCQyJ9