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