import{r as registerInstance,h,H as Host}from"./index-ecdfb761.js";var DevingenProductRootTaban=function(){function t(t){registerInstance(this,t)}t.prototype.componentWillLoad=function(){this.fetchProductSettings()};t.prototype.fetchProductSettings=function(){var t=this;this.apiDevingen.findProductSettingsTaban(this.product._id).then((function(n){return t.productSettings=n})).catch((function(n){var r;if(((r=n===null||n===void 0?void 0:n.data)===null||r===void 0?void 0:r.error)==="product-setting-not-found-for-product"){t.apiDevingen.createProductSettingsTaban(t.product._id).then((function(n){t.productSettings=n})).catch((function(n){return t.error=n}))}else{t.error=n}}))};t.prototype.render=function(){var t=this.error;if(t){return h(Host,null,h("div",{class:"d-flex justify-content-center"},h("devingen-error-card",{error:t,message:"Unexpected error occurred."})))}return h(Host,{class:"container d-flex flex-grow-1 flex-column"})};return t}();export{DevingenProductRootTaban as devingen_product_root_taban};