import { setConfigState } from "./config-state";
export class JustifiConfigProvider {
    constructor() {
        this.apiOrigin = PROXY_API_ORIGIN;
        this.iframeOrigin = IFRAME_ORIGIN;
        this.accountId = '';
    }
    componentWillLoad() {
        setConfigState({
            apiOrigin: this.apiOrigin,
            iframeOrigin: this.iframeOrigin,
            accountId: this.accountId
        });
    }
    render() {
        return null;
    }
    static get is() { return "justifi-config-provider"; }
    static get properties() {
        return {
            "apiOrigin": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "api-origin",
                "defaultValue": "PROXY_API_ORIGIN"
            },
            "iframeOrigin": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "iframe-origin",
                "defaultValue": "IFRAME_ORIGIN"
            },
            "accountId": {
                "type": "string",
                "mutable": false,
                "complexType": {
                    "original": "string",
                    "resolved": "string",
                    "references": {}
                },
                "required": false,
                "optional": true,
                "docs": {
                    "tags": [],
                    "text": ""
                },
                "getter": false,
                "setter": false,
                "reflect": false,
                "attribute": "account-id",
                "defaultValue": "''"
            }
        };
    }
}
