import{r as s,h as t,H as i}from"./p-c1e62c18.js";import"./p-3c3b4f3f.js";import"./p-b64f8873.js";import{P as r}from"./p-6eda188d.js";const e=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:e,products:o,workspaceOwnerships:p}=this;return e?t(i,null,t("devingen-product-root-"+e.type,{apiData:s,apiDevingen:r,product:e,products:o,workspaceOwnerships:p})):t("div",{class:"d-flex justify-content-center pt-3"},t("dvn-progress",{indefinite:!0}))}};export{e as devingen_product_page}