'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const core = require('./core-0dcf683d.js');
require('./_commonjsHelpers-ab75601c.js');
const utils = require('./utils-19525089.js');

const PwcDynamicFormButtons = class {
    constructor(hostRef) {
        core.registerInstance(this, hostRef);
    }
    onConfigChanged(items) {
        this.resolvedItems = utils.resolveJson(items);
    }
    componentWillLoad() {
        this.onConfigChanged(this.items);
    }
    constructButton(button) {
        return core.h("input", Object.assign({}, button));
    }
    render() {
        return (core.h("div", null, this.resolvedItems
            ? this.resolvedItems.map(button => this.constructButton(button))
            : ""));
    }
    static get watchers() { return {
        "items": ["onConfigChanged"]
    }; }
    static get style() { return ""; }
};

exports.pwc_dynamic_form_buttons = PwcDynamicFormButtons;
