module.exports = require('marko/components/legacy').defineComponent({
    template: require('./template.marko'),
    getInitialState: function(input) {
        return {
            version: input.version,
            id: input.id
        };
    },
    getTemplateData: function(state, input) {
        return {
            version: state.version,
            id: state.id
        };
    },
    init: function() {
        // console.log(module.id, 'init()', this.state);
        window.rerenderInitOrder.push(this.state.id);
    },
    onUpdate: function() {
        // console.log(module.id, 'init()', this.state);
        window.rerenderInitOrder.push(this.state.id);
    }
});