"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JISEventEffectHelper = void 0;
const jisEventEffect_1 = require("../../schema-definitions/jis/constants/jisEventEffect");
class JISEventEffectHelper {
    static getEffectAsList(eventEffect) {
        if (Array.isArray(eventEffect)) {
            return eventEffect.flatMap((effect) => effect.split(jisEventEffect_1.eventEffectDelimiter));
        }
        else {
            return eventEffect.split(jisEventEffect_1.eventEffectDelimiter);
        }
    }
    static getMainEffect(eventEffect) {
        return JISEventEffectHelper.getEffectAsList(eventEffect)[0];
    }
    static getEffectAsString(eventEffect) {
        return JISEventEffectHelper.getEffectAsList(eventEffect).join(jisEventEffect_1.eventEffectDelimiter);
    }
}
exports.JISEventEffectHelper = JISEventEffectHelper;
//# sourceMappingURL=JISEventEffectHelper.js.map