import{r as t,h as r,H as o}from"./p-9f21f85f.js";const e=class{constructor(r){t(this,r)}componentWillLoad(){this.fetchProductSettings()}fetchProductSettings(){this.apiDevingen.findProductSettingsTaban(this.product._id).then((t=>this.productSettings=t)).catch((t=>{var r;"product-setting-not-found-for-product"===(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.error)?this.apiDevingen.createProductSettingsTaban(this.product._id).then((t=>{this.productSettings=t})).catch((t=>this.error=t)):this.error=t}))}render(){const{error:t}=this;return t?r(o,null,r("div",{class:"d-flex justify-content-center"},r("devingen-error-card",{error:t,message:"Unexpected error occurred."}))):r(o,{class:"container d-flex flex-grow-1 flex-column"})}};export{e as devingen_product_root_taban}