var __awaiter=this&&this.__awaiter||function(e,n,t,r){function o(e){return e instanceof t?e:new t((function(n){n(e)}))}return new(t||(t=Promise))((function(t,i){function a(e){try{c(r.next(e))}catch(e){i(e)}}function s(e){try{c(r["throw"](e))}catch(e){i(e)}}function c(e){e.done?t(e.value):o(e.value).then(a,s)}c((r=r.apply(e,n||[])).next())}))};var __generator=this&&this.__generator||function(e,n){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,o,i,a;return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function s(e){return function(n){return c([e,n])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(t)try{if(r=1,o&&(i=a[0]&2?o["return"]:a[0]?o["throw"]||((i=o["return"])&&i.call(o),0):o.next)&&!(i=i.call(o,a[1])).done)return i;if(o=0,i)a=[a[0]&2,i.value];switch(a[0]){case 0:case 1:i=a;break;case 4:t.label++;return{value:a[1],done:false};case 5:t.label++;o=a[1];a=[0];continue;case 7:a=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(a[0]===6||a[0]===2)){t=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){t.label=a[1];break}if(a[0]===6&&t.label<i[1]){t.label=i[1];i=a;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(a);break}if(i[2])t.ops.pop();t.trys.pop();continue}a=n.call(e,t)}catch(e){a=[6,e];o=0}finally{r=i=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};System.register(["./p-c4df9d4b.system.js","./p-c0811bf8.system.js","./p-29fbc7f2.system.js","./p-037d279a.system.js","./p-77e9a1cf.system.js","./p-0bbf3c73.system.js","./p-58f2f536.system.js","./p-da593370.system.js","./p-fe1f76a3.system.js"],(function(e){"use strict";var n,t,r,o,i,a;return{setters:[function(e){n=e.r;t=e.h;r=e.H},function(e){o=e.C},function(e){i=e.p},function(e){a=e.D},function(){},function(){},function(){},function(){},function(){}],execute:function(){var s=".sc-devingen-product-damga-domain-table-list-dns-record-h{display:block;padding:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}";var c={"18.192.241.137":"eu-central-2.damga.devingen.io","52.29.141.76":"eu-central-1a.damga.devingen.io"};var u=e("devingen_product_damga_domain_table_list_dns_record",function(){function e(e){n(this,e)}e.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var e,n,t;return __generator(this,(function(r){switch(r.label){case 0:e=(new o).getAll().jwt;n={Authorization:e?"Bearer "+(new o).getAll().jwt:undefined};return[4,new a(i.damga+"/"+i.base,n).getDnsRecord(this.item.domain).catch((function(e){console.log("Getting dns record failed",e)}))];case 1:t=r.sent();if(!t)return[2];this.dnsRecord=t;return[2]}}))}))};e.prototype.render=function(){var e,n;return t(r,null,c[(e=this.dnsRecord)===null||e===void 0?void 0:e.record]||((n=this.dnsRecord)===null||n===void 0?void 0:n.record)||"-")};return e}());u.style=s}}}));