"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var reactDom = require("react-dom");
var React = require("react");
var react_1 = require("@builder.io/react");
if (typeof self !== 'undefined') {
    self.addEventListener('message', function (event) {
        var data = event.data;
        // TODO: message for values and value change
        if (data && data.type === 'builder.loadContent') {
            reactDom.render(React.createElement(react_1.BuilderComponent, {
                content: data.data.content
                // Send value down and up
            }), document.body);
        }
    });
    self.postMessage({
        type: 'builder.workerLoaded',
        data: {
            type: 'content'
        }
    }, '*');
}
//# sourceMappingURL=content-loader.js.map