'use strict';

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

const core = require('./core-6c8c650d.js');
require('./_commonjsHelpers-ab75601c.js');
const utils = require('./utils-27bd9876.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 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;
