"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RenamePromptHandle = void 0;
const PromptHandle_1 = require("./PromptHandle");
class RenamePromptHandle extends PromptHandle_1.PromptHandle {
    constructor(originalFileName, target) {
        super();
        this.originalFileName = originalFileName;
        this.target = target;
        this.$.value = originalFileName;
        this.setSelectionRange(0, originalFileName.lastIndexOf('.'));
    }
    get id() {
        return this.target.id;
    }
    get depth() {
        return this.target.depth;
    }
}
exports.RenamePromptHandle = RenamePromptHandle;
//# sourceMappingURL=RenamePromptHandle.js.map