"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.WorkbookPivotCacheXform = void 0;
const base_xform_1 = require("../base-xform.js");
class WorkbookPivotCacheXform extends base_xform_1.BaseXform {
    render(xmlStream, model) {
        xmlStream.leafNode("pivotCache", {
            cacheId: model.cacheId,
            "r:id": model.rId
        });
    }
    parseOpen(node) {
        if (node.name === "pivotCache") {
            this.model = {
                cacheId: node.attributes.cacheId,
                rId: node.attributes["r:id"]
            };
            return true;
        }
        return false;
    }
    parseText() { }
    parseClose() {
        return false;
    }
}
exports.WorkbookPivotCacheXform = WorkbookPivotCacheXform;
