/* ===================== AUTOGENERATED SOURCE IMPORT ===================== */

import GlobalStyle from "/emcJS/util/html/template/CSSTemplate.js";

const STYLE = new GlobalStyle(`
    :host {
        --logic-color-back: #fb7c7c;
        --logic-color-border: #650000;
    }
`);

/* ======================================================================= */

import AbstractElement from "../abstract/AbstractElement.js";

const TPL_CAPTION = "FALSE";
const REFERENCE = "false";

export default class LiteralFalse extends AbstractElement {

    constructor() {
        super(TPL_CAPTION);
        STYLE.apply(this.shadowRoot);
    }

    calculate(/* state = {} */) {
        this.shadowRoot.getElementById("header").setAttribute("value", "0");
        return 0;
    }

    toJSON() {
        return {type: REFERENCE};
    }

    loadLogic(/* logic */) {}

}

AbstractElement.registerReference(REFERENCE, LiteralFalse);
customElements.define(`emc-logic-${REFERENCE}`, LiteralFalse);
