var __awaiter=this&&this.__awaiter||function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function c(t){try{a(r.next(t))}catch(t){o(t)}}function u(t){try{a(r["throw"](t))}catch(t){o(t)}}function a(t){t.done?n(t.value):i(t.value).then(c,u)}a((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,c;return c={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(c[Symbol.iterator]=function(){return this}),c;function u(t){return function(e){return a([t,e])}}function a(c){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=c[0]&2?i["return"]:c[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,c[1])).done)return o;if(i=0,o)c=[c[0]&2,o.value];switch(c[0]){case 0:case 1:o=c;break;case 4:n.label++;return{value:c[1],done:false};case 5:n.label++;i=c[1];c=[0];continue;case 7:c=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){n=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){n.label=c[1];break}if(c[0]===6&&n.label<o[1]){n.label=o[1];o=c;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(c);break}if(o[2])n.ops.pop();n.trys.pop();continue}c=e.call(t,n)}catch(t){c=[6,t];i=0}finally{r=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:true}}};System.register(["./p-c4df9d4b.system.js","./p-0ea63775.system.js","./p-2db4f08c.system.js","./p-23628d1c.system.js"],(function(t){"use strict";var e,n,r,i;return{setters:[function(t){e=t.r;n=t.h;r=t.H},function(t){i=t.P},function(){},function(){}],execute:function(){var o=t("devingen_product_page",function(){function t(t){var n=this;e(this,t);this.fetchProduct=function(){return __awaiter(n,void 0,void 0,(function(){var t,e;var n=this;return __generator(this,(function(r){switch(r.label){case 0:t=this.match.params.id;return[4,this.apiDevingen.getProduct(t).catch((function(t){return n.error=t}))];case 1:e=r.sent();if(!e)return[2];this.product=i.decode(e);return[2]}}))}))}}t.prototype.componentWillLoad=function(){this.fetchProduct()};t.prototype.render=function(){var t=this,e=t.apiData,i=t.apiDevingen,o=t.product,c=t.products,u=t.workspaceOwnerships;if(!o){return n("div",{class:"d-flex justify-content-center pt-3"},n("dvn-progress",{indefinite:true}))}var a="devingen-product-root-"+o.type;return n(r,null,n(a,{apiData:e,apiDevingen:i,product:o,products:c,workspaceOwnerships:u}))};return t}())}}}));