!function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";var t;!function(t){t.download="download",t["life-annuity"]="life-annuity",t.list="list",t["plot-valuation"]="plot-valuation",t["property-request"]="property-request",t.quizzard="quizzard",t["return-call"]="return-call",t.valuation="valuation"}(t||(t={}));class e extends HTMLElement{static get observedAttributes(){return["widget","slug","variant","extended"]}constructor(){super(),this._widget=void 0,this._slug="",this._variant="",this._extended=!1}get widget(){return this._widget}set widget(t){this._widget=t,this.loadComponent()}get slug(){return this._slug}set slug(t){this._slug=t,this.render()}get variant(){return this._variant}set variant(t){this._variant=t,this.render()}get extended(){return this._extended}set extended(t){this._extended=t,this.render()}async loadComponent(){this._widget&&!window.customElements.get(`btm-${this._widget}`)&&await import(`https://components.bottimmo.com/components/697cbada3281069eaa136f9c/btm-${this._widget}/de-DE`),this.render()}attributeChangedCallback(t,e,i){e!==i&&("widget"===t?this.widget=i:"slug"===t?this.slug=i:"variant"===t?this.variant=i:"extended"===t&&(this.extended="true"===i))}render(){if(this.innerHTML="",!this._widget)return;const t=document.createElement(`btm-${this._widget}`);t.setAttribute("style","margin: auto;"),!this._slug||"download"!==this._widget&&"quizzard"!==this._widget||t.setAttribute("slug",this._slug),this._slug&&"list"===this._widget&&t.setAttribute("type",this._slug),this._variant&&"download"===this._widget&&t.setAttribute(this._variant,"true"),this._extended&&"download"===this._widget&&t.setAttribute("extended","true"),this.appendChild(t)}}window.customElements.get("btm-widget")||customElements.define("btm-widget",e)}));
//# sourceMappingURL=btm-widget.de-DE.umd.min.js.map
