import{r as s,h as t,H as i}from"./p-cb5076d4.js";import{P as r}from"./p-b1bf76b5.js";import"./p-56d4255d.js";import"./p-d50d0ec8.js";const o=class{constructor(t){s(this,t),this.fetchProduct=async()=>{const{id:s}=this.match.params,t=await this.apiDevingen.getProduct(s).catch((s=>this.error=s));t&&(this.product=r.decode(t))}}componentWillLoad(){this.fetchProduct()}render(){const{apiData:s,apiDevingen:r,product:o,products:p,workspaceOwnerships:e}=this;return o?t(i,null,t(`devingen-product-root-${o.type}`,{apiData:s,apiDevingen:r,product:o,products:p,workspaceOwnerships:e})):t("div",{class:"d-flex justify-content-center pt-3"},t("dvn-progress",{indefinite:!0}))}};export{o as devingen_product_page}