"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AwaitPDFDownloadAction = void 0;
const MablAction_1 = require("../MablAction");
const mablscriptFind_1 = require("../mablscriptFind");
class AwaitPDFDownloadAction extends MablAction_1.MablAction {
    static actionCode = 'await_pdf';
    static mablScriptStepNames = [AwaitPDFDownloadAction.actionCode];
    pdfUUID;
    constructor(_name, args) {
        super(AwaitPDFDownloadAction.actionCode, AwaitPDFDownloadAction.actionCode, args);
        this.pdfUUID = this.getActionArgs()[0]?.uuid ?? '';
    }
    toMablscript() {
        return `await_pdf(${(0, mablscriptFind_1.buildStepArgumentString)({
            params: { uuid: this.pdfUUID },
            legacy: true,
        })})`;
    }
}
exports.AwaitPDFDownloadAction = AwaitPDFDownloadAction;
