"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CfIconExtXform = void 0;
const base_xform_1 = require("../../base-xform.js");
class CfIconExtXform extends base_xform_1.BaseXform {
    get tag() {
        return "x14:cfIcon";
    }
    render(xmlStream, model) {
        xmlStream.leafNode(this.tag, {
            iconSet: model.iconSet,
            iconId: model.iconId
        });
    }
    parseOpen({ attributes }) {
        this.model = {
            iconSet: attributes.iconSet,
            iconId: base_xform_1.BaseXform.toIntValue(attributes.iconId)
        };
    }
    parseClose(name) {
        return name !== this.tag;
    }
}
exports.CfIconExtXform = CfIconExtXform;
