// export default class GurpsActiveEffectConfig extends foundry.applications.sheets.ActiveEffectConfig {
// COMPATIBILITY: v12
export default class GurpsActiveEffectConfig extends ActiveEffectConfig {
    constructor(object = {}) {
        super(object);
    }
    async getData(options = {}) {
        const data = await super.getData(options);
        for (let i = 0; i < data.data.changes.length; i++) {
            data.data.changes[i].value = game.i18n.localize(data.data.changes[i].value);
        }
        return data;
    }
    /** @override */
    async close(options) {
        super.close(options);
        this._parentWindow.render();
    }
    /**
     * @override
     * Add a reference to the 'parent' window into options so we can refresh it.
     * @param {*} force
     * @param {*} options
     */
    render(force, options = {}) {
        if (options.hasOwnProperty('parentWindow'))
            this._parentWindow = options.parentWindow;
        return super.render(force, options);
    }
}
