import { r as registerInstance, h } from './core-ef7fea85.js';
import './_commonjsHelpers-4ab098b6.js';
import { r as resolveJson } from './utils-ae529797.js';

const PwcDynamicFormButtons = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
    }
    onConfigChanged(items) {
        this.resolvedItems = resolveJson(items);
    }
    componentWillLoad() {
        this.onConfigChanged(this.items);
    }
    constructButton(button) {
        return 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 ""; }
};

export { PwcDynamicFormButtons as pwc_dynamic_form_buttons };
