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 u(t){try{c(r.next(t))}catch(t){o(t)}}function a(t){try{c(r["throw"](t))}catch(t){o(t)}}function c(t){t.done?n(t.value):i(t.value).then(u,a)}c((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,u;return u={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function a(t){return function(e){return c([t,e])}}function c(u){if(r)throw new TypeError("Generator is already executing.");while(n)try{if(r=1,i&&(o=u[0]&2?i["return"]:u[0]?i["throw"]||((o=i["return"])&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;if(i=0,o)u=[u[0]&2,o.value];switch(u[0]){case 0:case 1:o=u;break;case 4:n.label++;return{value:u[1],done:false};case 5:n.label++;i=u[1];u=[0];continue;case 7:u=n.ops.pop();n.trys.pop();continue;default:if(!(o=n.trys,o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1];o=u;break}if(o&&n.label<o[2]){n.label=o[2];n.ops.push(u);break}if(o[2])n.ops.pop();n.trys.pop();continue}u=e.call(t,n)}catch(t){u=[6,t];i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-5b6828db.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,u=t.products,a=t.workspaceOwnerships;if(!o){return n("div",{class:"d-flex justify-content-center pt-3"},n("dvn-progress",{indefinite:true}))}var c="devingen-product-root-"+o.type;return n(r,null,n(c,{apiData:e,apiDevingen:i,product:o,products:u,workspaceOwnerships:a}))};return t}())}}}));